[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Add-on: Github Flavored Markdown exporter
From: |
Charles Berry |
Subject: |
Re: [O] Add-on: Github Flavored Markdown exporter |
Date: |
Wed, 9 Apr 2014 04:07:17 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Lars Tveito <larstvei <at> student.matnat.uio.no> writes:
>
> Hi, thanks for checking it out!
>
> Thorsten Jolitz writes:
>
> > Thorsten Jolitz <tjolitz <at> gmail.com> writes:
> >
> >> Lars Tveito <larstvei <at> 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
Re: [O] Add-on: Github Flavored Markdown exporter, Bastien, 2014/04/11