Support --listings in markdown2pdf (Etienne Millon).

This commit is contained in:
John MacFarlane 2011-01-28 21:21:09 -08:00
parent d8d0f46c4c
commit d28daf0e89
2 changed files with 4 additions and 1 deletions

View file

@ -48,6 +48,9 @@ packages are not included in your latex setup, they can be obtained from
-N, \--number-sections
: Number section headings in LaTeX output. (Default is not to number them.)
\--listings
: Use listings package for LaTeX code blocks
\--template=*FILE*
: Use *FILE* as a custom template for the generated document. Implies
`-s`. See the section TEMPLATES in `pandoc`(1) for information about

View file

@ -155,7 +155,7 @@ main = bracket
"--include-before-body","--include-after-body",
"--custom-header","--output",
"--template", "--variable",
"--csl", "--bibliography", "--data-dir"]
"--csl", "--bibliography", "--data-dir", "--listings"]
let isOpt ('-':_) = True
isOpt _ = False
let opts = filter isOpt args