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:
larstvei 2014-10-30 10:39:53 +01:00
parent 373e05d632
commit 90e5a2c53c
2 changed files with 1 additions and 9 deletions

View File

@ -1,7 +1,7 @@
#Github Flavored Markdown exporter for Org Mode #Github Flavored Markdown exporter for Org Mode
This is a small exporter based on the Markdown exporter already existing in 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 The exporter has made it's way into to the `contrib` section of Org, and can
be found here: be found here:

View File

@ -40,13 +40,6 @@
:version "24.4" :version "24.4"
:package-version '(Org . "8.0")) :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 ;;; Define Back-End
@ -77,7 +70,6 @@
format. CONTENTS is nil. INFO is a plist used as a communication format. CONTENTS is nil. INFO is a plist used as a communication
channel." channel."
(let* ((lang (org-element-property :language src-block)) (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)) (code (org-export-format-code-default src-block info))
(prefix (concat "```" lang "\n")) (prefix (concat "```" lang "\n"))
(suffix "```")) (suffix "```"))