git.iko.soy/typeable/pandoc
on master help sign in
Changed --print-default-header to --print-default-template.
0d8fc82fiddlosopher
@@ -310,6 +310,10 @@ For further documentation, see the `pandoc(1)` man page.
310 repeatedly to include multiple files. They will be included in the
310 repeatedly to include multiple files. They will be included in the
311 order specified.
311 order specified.
312
312
313+`-D` or `--print-default-template` *format*
314+: prints the default template for an output *format*. (See `-t`
315+ for a list of possible *format*s.)
316+
313`-T` or `--title-prefix` *string*
317`-T` or `--title-prefix` *string*
314: includes *string* as a prefix at the beginning of the title that
318: includes *string* as a prefix at the beginning of the title that
315 appears in the HTML header (but not in the title as it appears at
319 appears in the HTML header (but not in the title as it appears at
man/man1/pandoc.1.md+3−4
@@ -186,10 +186,9 @@ to Pandoc. Or use `html2markdown`(1), a wrapper around `pandoc`.
186 default header, which can be printed by using the `-D` option).
186 default header, which can be printed by using the `-D` option).
187 Implies `-s`.
187 Implies `-s`.
188
188
189−-D *FORMAT*, \--print-default-header=*FORMAT*
189+-D *FORMAT*, \--print-default-template=*FORMAT*
190−: Print the default header for *FORMAT* (`html`, `s5`, `latex`,
190+: Print the default template for an output *FORMAT*. (See `-t`
191− `context`, `docbook`, `man`, `markdown`, `opendocument`,
191+ for a list of possible *FORMAT*s.)
192− `rst`, `rtf`).
193
192
194-T *STRING*, \--title-prefix=*STRING*
193-T *STRING*, \--title-prefix=*STRING*
195: Specify *STRING* as a prefix to the HTML window title.
194: Specify *STRING* as a prefix to the HTML window title.
src/pandoc.hs+4−4
@@ -387,16 +387,16 @@ options =
387 "STRING")
387 "STRING")
388 "" -- "String to prefix to HTML window title"
388 "" -- "String to prefix to HTML window title"
389
389
390− , Option "D" ["print-default-header"]
390+ , Option "D" ["print-default-template"]
391 (ReqArg
391 (ReqArg
392 (\arg _ -> do
392 (\arg _ -> do
393− let header = case (lookup arg writers) of
393+ let template = case (lookup arg writers) of
394 Just (_, h) -> h
394 Just (_, h) -> h
395 Nothing -> error ("Unknown reader: " ++ arg)
395 Nothing -> error ("Unknown reader: " ++ arg)
396− hPutStr stdout header
396+ hPutStr stdout template
397 exitWith ExitSuccess)
397 exitWith ExitSuccess)
398 "FORMAT")
398 "FORMAT")
399− "" -- "Print default header for FORMAT"
399+ "" -- "Print default template for FORMAT"
400#ifdef _CITEPROC
400#ifdef _CITEPROC
401 , Option "" ["biblio"]
401 , Option "" ["biblio"]
402 (ReqArg
402 (ReqArg