From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Berry Subject: Re: Add-on: Github Flavored Markdown exporter Date: Wed, 9 Apr 2014 04:07:17 +0000 (UTC) Message-ID: References: <87a9bwbx6t.fsf@gmail.com> <878urg12im.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXjnX-00071A-3H for emacs-orgmode@gnu.org; Wed, 09 Apr 2014 00:07:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WXjnO-0000rU-DC for emacs-orgmode@gnu.org; Wed, 09 Apr 2014 00:07:38 -0400 Received: from plane.gmane.org ([80.91.229.3]:55373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXjnO-0000rO-5q for emacs-orgmode@gnu.org; Wed, 09 Apr 2014 00:07:30 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WXjnL-0007mL-To for emacs-orgmode@gnu.org; Wed, 09 Apr 2014 06:07:27 +0200 Received: from 172-7-166-26.lightspeed.sndgca.sbcglobal.net ([172.7.166.26]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Apr 2014 06:07:27 +0200 Received: from ccberry by 172-7-166-26.lightspeed.sndgca.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Apr 2014 06:07:27 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Lars Tveito student.matnat.uio.no> writes: > > Hi, thanks for checking it out! > > Thorsten Jolitz writes: > > > Thorsten Jolitz gmail.com> writes: > > > >> Lars Tveito student.matnat.uio.no> writes: > >> > >>> Hi! > >>> > >>> I have written an exporter for Github Flavored Markdown, which is a > >>> derived back-end from the Markdown (vanilla) exporter. It adds > >>> Github-style src-blocks, strike-through and table of contents. [snip] Nice! > > Getting it to work with source-blocks was the feature I missed the most > from the vanilla markdown exporter. If you specify a language in the > source-block it will be added to the exported version as well; a problem > occurs if you specify a language not supported by Github. Emacs lisp is > an example of this, so there is a alist `org-gfm-lang' which by default > has the value: > > (("emacs-lisp" . "lisp") ("elisp" . "lisp")) > > So a source block like this: > > #+begin_src emacs-lisp > (defun foo () > 'foo) > #+end_src > > exports to this: > > ```lisp > (defun foo () > 'foo) > ``` In https://github.com/github/linguist/blob/master/lib/linguist/languages.yml I see this: ,---- | Emacs Lisp: | type: programming | lexer: Scheme | color: "#c065db" | aliases: | - elisp | - emacs | primary_extension: .el | filenames: | - .emacs | extensions: | - .emacs `---- so doesn't '#+BEGIN_SRC elisp' just work? And shouldn't '(("emacs-lisp" . "elisp")) be the value of `org-gfm-lang'? HTH, Chuck