summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--man/man1/markdown2pdf.1.md3
-rw-r--r--src/markdown2pdf.hs2
2 files changed, 4 insertions, 1 deletions
diff --git a/man/man1/markdown2pdf.1.md b/man/man1/markdown2pdf.1.md
index 2d02787ef..8cd23747b 100644
--- a/man/man1/markdown2pdf.1.md
+++ b/man/man1/markdown2pdf.1.md
@@ -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
diff --git a/src/markdown2pdf.hs b/src/markdown2pdf.hs
index 768c0207d..4070001f1 100644
--- a/src/markdown2pdf.hs
+++ b/src/markdown2pdf.hs
@@ -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