From 90e5a2c53c08ad3ceb35686fba9516e3269c869f Mon Sep 17 00:00:00 2001 From: larstvei Date: Thu, 30 Oct 2014 10:39:53 +0100 Subject: [PATCH] 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. --- README.md | 2 +- ox-gfm.el | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/README.md b/README.md index f02d655..d82f3b4 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/ox-gfm.el b/ox-gfm.el index f7acc94..cb4125d 100644 --- a/ox-gfm.el +++ b/ox-gfm.el @@ -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 "```"))