mirror of
https://github.com/larstvei/ox-gfm.git
synced 2024-11-26 01:28:30 +00:00
Removed org-gfm-lang
, it is no longer necessary.
Earlier Github did not recognize, for instance, "emacs lisp" as a language, so an associative list was used to map unrecognized languages to a similar recognized language. This is no longer necessary.
This commit is contained in:
parent
373e05d632
commit
90e5a2c53c
@ -1,7 +1,7 @@
|
||||
#Github Flavored Markdown exporter for Org Mode
|
||||
|
||||
This is a small exporter based on the Markdown exporter already existing in
|
||||
org mode. It should support the features [listed here](https://help.github.com/articles/github-flavored-markdown/).
|
||||
Org mode. It should support the features [listed here](https://help.github.com/articles/github-flavored-markdown/).
|
||||
|
||||
The exporter has made it's way into to the `contrib` section of Org, and can
|
||||
be found here:
|
||||
|
@ -40,13 +40,6 @@
|
||||
:version "24.4"
|
||||
:package-version '(Org . "8.0"))
|
||||
|
||||
(defcustom org-gfm-lang '(("emacs-lisp" . "lisp") ("elisp" . "lisp"))
|
||||
"Alist of languages that are not recognized by Github, to
|
||||
languages that are. Emacs lisp is a good example of this, where
|
||||
we can use lisp as a nice replacement."
|
||||
:group 'org-export-gfm)
|
||||
|
||||
|
||||
|
||||
;;; Define Back-End
|
||||
|
||||
@ -77,7 +70,6 @@
|
||||
format. CONTENTS is nil. INFO is a plist used as a communication
|
||||
channel."
|
||||
(let* ((lang (org-element-property :language src-block))
|
||||
(lang (or (assoc-default lang org-gfm-lang) lang))
|
||||
(code (org-export-format-code-default src-block info))
|
||||
(prefix (concat "```" lang "\n"))
|
||||
(suffix "```"))
|
||||
|
Loading…
Reference in New Issue
Block a user