git.iko.soy/typeable/pandoc
on 1.9.3 help sign in
2292 lines 81 kB history raw
1% Pandoc User's Guide
2% John MacFarlane
3% January 27, 2012
5Synopsis
6========
8pandoc [*options*] [*input-file*]...
10Description
11===========
13Pandoc is a [Haskell] library for converting from one markup format to
14another, and a command-line tool that uses this library. It can read
15[markdown] and (subsets of) [Textile], [reStructuredText], [HTML],
16[LaTeX], and [DocBook XML]; and it can write plain text, [markdown],
17[reStructuredText], [XHTML], [HTML 5], [LaTeX] (including [beamer]
18slide shows), [ConTeXt], [RTF], [DocBook XML], [OpenDocument XML],
19[ODT], [Word docx], [GNU Texinfo], [MediaWiki markup], [EPUB],
20[Textile], [groff man] pages, [Emacs Org-Mode], [AsciiDoc], and [Slidy],
21[DZSlides], or [S5] HTML slide shows. It can also produce [PDF] output
22on systems where LaTeX is installed.
24Pandoc's enhanced version of markdown includes syntax for footnotes,
25tables, flexible ordered lists, definition lists, delimited code blocks,
26superscript, subscript, strikeout, title blocks, automatic tables of
27contents, embedded LaTeX math, citations, and markdown inside HTML block
28elements. (These enhancements, described below under
29[Pandoc's markdown](#pandocs-markdown), can be disabled using the `--strict`
30option.)
32In contrast to most existing tools for converting markdown to HTML, which
33use regex substitutions, Pandoc has a modular design: it consists of a
34set of readers, which parse text in a given format and produce a native
35representation of the document, and a set of writers, which convert
36this native representation into a target format. Thus, adding an input
37or output format requires only adding a reader or writer.
39Using `pandoc`
40--------------
42If no *input-file* is specified, input is read from *stdin*.
43Otherwise, the *input-files* are concatenated (with a blank
44line between each) and used as input. Output goes to *stdout* by
45default (though output to *stdout* is disabled for the `odt`, `docx`,
46and `epub` output formats). For output to a file, use the
47`-o` option:
49 pandoc -o output.html input.txt
51Instead of a file, an absolute URI may be given. In this case
52pandoc will fetch the content using HTTP:
54 pandoc -f html -t markdown http://www.fsf.org
56If multiple input files are given, `pandoc` will concatenate them all (with
57blank lines between them) before parsing.
59The format of the input and output can be specified explicitly using
60command-line options. The input format can be specified using the
61`-r/--read` or `-f/--from` options, the output format using the
62`-w/--write` or `-t/--to` options. Thus, to convert `hello.txt` from
63markdown to LaTeX, you could type:
65 pandoc -f markdown -t latex hello.txt
67To convert `hello.html` from html to markdown:
69 pandoc -f html -t markdown hello.html
71Supported output formats are listed below under the `-t/--to` option.
72Supported input formats are listed below under the `-f/--from` option. Note
73that the `rst`, `textile`, `latex`, and `html` readers are not complete;
74there are some constructs that they do not parse.
76If the input or output format is not specified explicitly, `pandoc`
77will attempt to guess it from the extensions of
78the input and output filenames. Thus, for example,
80 pandoc -o hello.tex hello.txt
82will convert `hello.txt` from markdown to LaTeX. If no output file
83is specified (so that output goes to *stdout*), or if the output file's
84extension is unknown, the output format will default to HTML.
85If no input file is specified (so that input comes from *stdin*), or
86if the input files' extensions are unknown, the input format will
87be assumed to be markdown unless explicitly specified.
89Pandoc uses the UTF-8 character encoding for both input and output.
90If your local character encoding is not UTF-8, you
91should pipe input and output through `iconv`:
93 iconv -t utf-8 input.txt | pandoc | iconv -f utf-8
95Creating a PDF
96--------------
98Earlier versions of pandoc came with a program, `markdown2pdf`, that
99used pandoc and pdflatex to produce a PDF. This is no longer needed,
100since `pandoc` can now produce `pdf` output itself. To produce a PDF, simply
101specify an output file with a `.pdf` extension. Pandoc will create a latex
102file and use pdflatex (or another engine, see `--latex-engine`) to convert it
103to PDF:
105 pandoc test.txt -o test.pdf
107Production of a PDF requires that a LaTeX engine be installed (see
108`--latex-engine`, below), and assumes that the following LaTeX packages are
109available: `amssymb`, `amsmath`, `ifxetex`, `ifluatex`, `listings` (if the
110`--listings` option is used), `fancyvrb`, `enumerate`, `ctable`, `url`,
111`graphicx`, `hyperref`, `ulem`, `babel` (if the `lang` variable is set),
112`fontspec` (if `xelatex` or `lualatex` is used as the LaTeX engine), `xltxtra`
113and `xunicode` (if `xelatex` is used).
115`hsmarkdown`
116------------
118A user who wants a drop-in replacement for `Markdown.pl` may create
119a symbolic link to the `pandoc` executable called `hsmarkdown`. When
120invoked under the name `hsmarkdown`, `pandoc` will behave as if the
121`--strict` flag had been selected, and no command-line options will be
122recognized. However, this approach does not work under Cygwin, due to
123problems with its simulation of symbolic links.
125[Cygwin]: http://www.cygwin.com/
126[`iconv`]: http://www.gnu.org/software/libiconv/
127[CTAN]: http://www.ctan.org "Comprehensive TeX Archive Network"
128[TeX Live]: http://www.tug.org/texlive/
129[MacTeX]: http://www.tug.org/mactex/
131Options
132=======
134General options
135---------------
137`-f` *FORMAT*, `-r` *FORMAT*, `--from=`*FORMAT*, `--read=`*FORMAT*
138: Specify input format. *FORMAT* can be `native` (native Haskell),
139 `json` (JSON version of native AST), `markdown` (markdown),
140 `textile` (Textile), `rst` (reStructuredText), `html` (HTML),
141 `docbook` (DocBook XML), or `latex` (LaTeX). If `+lhs` is
142 appended to `markdown`, `rst`, `latex`, the input will be
143 treated as literate Haskell source: see [Literate Haskell
144 support](#literate-haskell-support), below.
146`-t` *FORMAT*, `-w` *FORMAT*, `--to=`*FORMAT*, `--write=`*FORMAT*
147: Specify output format. *FORMAT* can be `native` (native Haskell),
148 `json` (JSON version of native AST), `plain` (plain text),
149 `markdown` (markdown), `rst` (reStructuredText), `html` (XHTML 1),
150 `html5` (HTML 5), `latex` (LaTeX), `beamer` (LaTeX beamer slide show),
151 `context` (ConTeXt), `man` (groff man), `mediawiki` (MediaWiki markup),
152 `textile` (Textile), `org` (Emacs Org-Mode), `texinfo` (GNU Texinfo),
153 `docbook` (DocBook XML), `opendocument` (OpenDocument XML), `odt`
154 (OpenOffice text document), `docx` (Word docx), `epub` (EPUB book),
155 `asciidoc` (AsciiDoc), `slidy` (Slidy HTML and javascript slide show),
156 `dzslides` (HTML5 + javascript slide show), `s5` (S5 HTML and javascript
157 slide show), or `rtf` (rich text format). Note that `odt` and `epub`
158 output will not be directed to *stdout*; an output filename must
159 be specified using the `-o/--output` option. If `+lhs` is appended
160 to `markdown`, `rst`, `latex`, `beamer`, `html`, or `html5`, the output
161 will be rendered as literate Haskell source: see [Literate Haskell
162 support](#literate-haskell-support), below.
164`-o` *FILE*, `--output=`*FILE*
165: Write output to *FILE* instead of *stdout*. If *FILE* is
166 `-`, output will go to *stdout*. (Exception: if the output
167 format is `odt`, `docx`, or `epub`, output to stdout is disabled.)
169`--data-dir=`*DIRECTORY*
170: Specify the user data directory to search for pandoc data files.
171 If this option is not specified, the default user data directory
172 will be used:
174 $HOME/.pandoc
176 in unix and
178 C:\Documents And Settings\USERNAME\Application Data\pandoc
180 in Windows. A `reference.odt`, `reference.docx`, `default.csl`,
181 `epub.css`, `templates`, `slidy`, or `s5` directory placed in this
182 directory will override pandoc's normal defaults.
184`-v`, `--version`
185: Print version.
187`-h`, `--help`
188: Show usage message.
190Reader options
191--------------
193`--strict`
194: Use strict markdown syntax, with no pandoc extensions or variants.
195 When the input format is HTML, this means that constructs that have no
196 equivalents in standard markdown (e.g. definition lists or strikeout
197 text) will be parsed as raw HTML.
199`-R`, `--parse-raw`
200: Parse untranslatable HTML codes and LaTeX environments as raw HTML
201 or LaTeX, instead of ignoring them. Affects only HTML and LaTeX
202 input. Raw HTML can be printed in markdown, reStructuredText, HTML, Slidy,
203 DZSlides, and S5 output; raw LaTeX can be printed in markdown,
204 reStructuredText, LaTeX, and ConTeXt output. The default is for the
205 readers to omit untranslatable HTML codes and LaTeX environments.
206 (The LaTeX reader does pass through untranslatable LaTeX *commands*,
207 even if `-R` is not specified.)
209`-S`, `--smart`
210: Produce typographically correct output, converting straight quotes
211 to curly quotes, `---` to em-dashes, `--` to en-dashes, and
212 `...` to ellipses. Nonbreaking spaces are inserted after certain
213 abbreviations, such as "Mr." (Note: This option is significant only when
214 the input format is `markdown` or `textile`. It is selected automatically
215 when the input format is `textile` or the output format is `latex` or
216 `context`, unless `--no-tex-ligatures` is used.)
218`--old-dashes`
219: Selects the pandoc <= 1.8.2.1 behavior for parsing smart dashes: `-` before
220 a numeral is an en-dash, and `--` is an em-dash. This option is selected
221 automatically for `textile` input.
223`--base-header-level=`*NUMBER*
224: Specify the base level for headers (defaults to 1).
226`--indented-code-classes=`*CLASSES*
227: Specify classes to use for indented code blocks--for example,
228 `perl,numberLines` or `haskell`. Multiple classes may be separated
229 by spaces or commas.
231`--normalize`
232: Normalize the document after reading: merge adjacent
233 `Str` or `Emph` elements, for example, and remove repeated `Space`s.
235`-p`, `--preserve-tabs`
236: Preserve tabs instead of converting them to spaces (the default).
238`--tab-stop=`*NUMBER*
239: Specify the number of spaces per tab (default is 4).
241General writer options
242----------------------
244`-s`, `--standalone`
245: Produce output with an appropriate header and footer (e.g. a
246 standalone HTML, LaTeX, or RTF file, not a fragment). This option
247 is set automatically for `pdf`, `epub`, `docx`, and `odt` output.
249`--template=`*FILE*
250: Use *FILE* as a custom template for the generated document. Implies
251 `--standalone`. See [Templates](#templates) below for a description
252 of template syntax. If no extension is specified, an extension
253 corresponding to the writer will be added, so that `--template=special`
254 looks for `special.html` for HTML output. If the template is not
255 found, pandoc will search for it in the user data directory
256 (see `--data-dir`). If this option is not used, a default
257 template appropriate for the output format will be used (see
258 `-D/--print-default-template`).
260`-V` *KEY[=VAL]*, `--variable=`*KEY[:VAL]*
261: Set the template variable *KEY* to the value *VAL* when rendering the
262 document in standalone mode. This is generally only useful when the
263 `--template` option is used to specify a custom template, since
264 pandoc automatically sets the variables used in the default
265 templates. If no *VAL* is specified, the key will be given the
266 value `true`.
268`-D` *FORMAT*, `--print-default-template=`*FORMAT*
269: Print the default template for an output *FORMAT*. (See `-t`
270 for a list of possible *FORMAT*s.)
272`--no-wrap`
273: Disable text wrapping in output. By default, text is wrapped
274 appropriately for the output format.
276`--columns`=*NUMBER*
277: Specify length of lines in characters (for text wrapping).
279`--toc`, `--table-of-contents`
280: Include an automatically generated table of contents (or, in
281 the case of `latex`, `context`, and `rst`, an instruction to create
282 one) in the output document. This option has no effect on `man`,
283 `docbook`, `slidy`, or `s5` output.
285`--no-highlight`
286: Disables syntax highlighting for code blocks and inlines, even when
287 a language attribute is given.
289`--highlight-style`=*STYLE*
290: Specifies the coloring style to be used in highlighted source code.
291 Options are `pygments` (the default), `kate`, `monochrome`,
292 `espresso`, `haddock`, and `tango`.
294`-H` *FILE*, `--include-in-header=`*FILE*
295: Include contents of *FILE*, verbatim, at the end of the header.
296 This can be used, for example, to include special
297 CSS or javascript in HTML documents. This option can be used
298 repeatedly to include multiple files in the header. They will be
299 included in the order specified. Implies `--standalone`.
301`-B` *FILE*, `--include-before-body=`*FILE*
302: Include contents of *FILE*, verbatim, at the beginning of the
303 document body (e.g. after the `<body>` tag in HTML, or the
304 `\begin{document}` command in LaTeX). This can be used to include
305 navigation bars or banners in HTML documents. This option can be
306 used repeatedly to include multiple files. They will be included in
307 the order specified. Implies `--standalone`.
309`-A` *FILE*, `--include-after-body=`*FILE*
310: Include contents of *FILE*, verbatim, at the end of the document
311 body (before the `</body>` tag in HTML, or the
312 `\end{document}` command in LaTeX). This option can be be used
313 repeatedly to include multiple files. They will be included in the
314 order specified. Implies `--standalone`.
316Options affecting specific writers
317----------------------------------
319`--self-contained`
320: Produce a standalone HTML file with no external dependencies, using
321 `data:` URIs to incorporate the contents of linked scripts, stylesheets,
322 images, and videos. The resulting file should be "self-contained,"
323 in the sense that it needs no external files and no net access to be
324 displayed properly by a browser. This option works only with HTML output
325 formats, including `html`, `html5`, `html+lhs`, `html5+lhs`, `s5`,
326 `slidy`, and `dzslides`. Scripts, images, and stylesheets at absolute URLs
327 will be downloaded; those at relative URLs will be sought first relative
328 to the working directory, then relative to the user data directory (see
329 `--data-dir`), and finally relative to pandoc's default data directory.
331`--offline`
332: Deprecated synonym for `--self-contained`.
334`-5`, `--html5`
335: Produce HTML5 instead of HTML4. This option has no effect for writers
336 other than `html`. (*Deprecated:* Use the `html5` output format instead.)
338`--ascii`
339: Use only ascii characters in output. Currently supported only
340 for HTML output (which uses numerical entities instead of
341 UTF-8 when this option is selected).
343`--reference-links`
344: Use reference-style links, rather than inline links, in writing markdown
345 or reStructuredText. By default inline links are used.
347`--atx-headers`
348: Use ATX style headers in markdown output. The default is to use
349 setext-style headers for levels 1-2, and then ATX headers.
351`--chapters`
352: Treat top-level headers as chapters in LaTeX, ConTeXt, and DocBook
353 output. When the LaTeX template uses the report, book, or
354 memoir class, this option is implied. If `--beamer` is used,
355 top-level headers will become `\part{..}`.
357`-N`, `--number-sections`
358: Number section headings in LaTeX, ConTeXt, or HTML output.
359 By default, sections are not numbered.
361`--no-tex-ligatures`
362: Do not convert quotation marks, apostrophes, and dashes to
363 the TeX ligatures when writing LaTeX or ConTeXt. Instead, just
364 use literal unicode characters. This is needed for using advanced
365 OpenType features with XeLaTeX and LuaLaTeX. Note: normally
366 `--smart` is selected automatically for LaTeX and ConTeXt
367 output, but it must be specified explicitly if `--no-tex-ligatures`
368 is selected. If you use literal curly quotes, dashes, and ellipses
369 in your source, then you may want to use `--no-tex-ligatures`
370 without `--smart`.
372`--listings`
373: Use listings package for LaTeX code blocks
375`-i`, `--incremental`
376: Make list items in slide shows display incrementally (one by one).
377 The default is for lists to be displayed all at once.
379`--slide-level`=*NUMBER*
380: Specifies that headers with the specified level create
381 slides (for `beamer`, `s5`, `slidy`, `dzslides`). Headers
382 above this level in the hierarchy are used to divide the
383 slide show into sections; headers below this level create
384 subheads within a slide. The default is to set the slide level
385 based on the contents of the document; see
386 [Structuring the slide show](#structuring-the-slide-show), below.
388`--section-divs`
389: Wrap sections in `<div>` tags (or `<section>` tags in HTML5),
390 and attach identifiers to the enclosing `<div>` (or `<section>`)
391 rather than the header itself.
392 See [Section identifiers](#header-identifiers-in-html-latex-and-context), below.
394`--email-obfuscation=`*none|javascript|references*
395: Specify a method for obfuscating `mailto:` links in HTML documents.
396 *none* leaves `mailto:` links as they are. *javascript* obfuscates
397 them using javascript. *references* obfuscates them by printing their
398 letters as decimal or hexadecimal character references.
399 If `--strict` is specified, *references* is used regardless of the
400 presence of this option.
402`--id-prefix`=*STRING*
403: Specify a prefix to be added to all automatically generated identifiers
404 in HTML output. This is useful for preventing duplicate identifiers
405 when generating fragments to be included in other pages.
407`-T` *STRING*, `--title-prefix=`*STRING*
408: Specify *STRING* as a prefix at the beginning of the title
409 that appears in the HTML header (but not in the title as it
410 appears at the beginning of the HTML body). Implies
411 `--standalone`.
413`-c` *URL*, `--css=`*URL*
414: Link to a CSS style sheet.
416`--reference-odt=`*FILE*
417: Use the specified file as a style reference in producing an ODT.
418 For best results, the reference ODT should be a modified version
419 of an ODT produced using pandoc. The contents of the reference ODT
420 are ignored, but its stylesheets are used in the new ODT. If no
421 reference ODT is specified on the command line, pandoc will look
422 for a file `reference.odt` in the user data directory (see
423 `--data-dir`). If this is not found either, sensible defaults will be
424 used.
426`--reference-docx=`*FILE*
427: Use the specified file as a style reference in producing a docx file.
428 For best results, the reference docx should be a modified version
429 of a docx file produced using pandoc. The contents of the reference docx
430 are ignored, but its stylesheets are used in the new docx. If no
431 reference docx is specified on the command line, pandoc will look
432 for a file `reference.docx` in the user data directory (see
433 `--data-dir`). If this is not found either, sensible defaults will be
434 used.
436`--epub-stylesheet=`*FILE*
437: Use the specified CSS file to style the EPUB. If no stylesheet
438 is specified, pandoc will look for a file `epub.css` in the
439 user data directory (see `--data-dir`). If it is not
440 found there, sensible defaults will be used.
442`--epub-cover-image=`*FILE*
443: Use the specified image as the EPUB cover. It is recommended
444 that the image be less than 1000px in width and height.
446`--epub-metadata=`*FILE*
447: Look in the specified XML file for metadata for the EPUB.
448 The file should contain a series of Dublin Core elements,
449 as documented at <http://dublincore.org/documents/dces/>.
450 For example:
452 <dc:rights>Creative Commons</dc:rights>
453 <dc:language>es-AR</dc:language>
455 By default, pandoc will include the following metadata elements:
456 `<dc:title>` (from the document title), `<dc:creator>` (from the
457 document authors), `<dc:date>` (from the document date, which should
458 be in [ISO 8601 format]), `<dc:language>` (from the `lang`
459 variable, or, if is not set, the locale), and `<dc:identifier
460 id="BookId">` (a randomly generated UUID). Any of these may be
461 overridden by elements in the metadata file.
463`--epub-embed-font=`*FILE*
464: Embed the specified font in the EPUB. This option can be repeated
465 to embed multiple fonts. To use embedded fonts, you
466 will need to add declarations like the following to your CSS (see
467 `--epub-stylesheet`):
469 @font-face {
470 font-family: DejaVuSans;
471 font-style: normal;
472 font-weight: normal;
473 src:url("DejaVuSans-Regular.ttf");
474 }
475 @font-face {
476 font-family: DejaVuSans;
477 font-style: normal;
478 font-weight: bold;
479 src:url("DejaVuSans-Bold.ttf");
480 }
481 @font-face {
482 font-family: DejaVuSans;
483 font-style: italic;
484 font-weight: normal;
485 src:url("DejaVuSans-Oblique.ttf");
486 }
487 @font-face {
488 font-family: DejaVuSans;
489 font-style: italic;
490 font-weight: bold;
491 src:url("DejaVuSans-BoldOblique.ttf");
492 }
493 body { font-family: "DejaVuSans"; }
495`--latex-engine=`*pdflatex|lualatex|xelatex*
496: Use the specified LaTeX engine when producing PDF output.
497 The default is `pdflatex`. If the engine is not in your PATH,
498 the full path of the engine may be specified here.
500Citations
501---------
503`--bibliography=`*FILE*
504: Specify bibliography database to be used in resolving
505 citations. The database type will be determined from the
506 extension of *FILE*, which may be `.mods` (MODS format),
507 `.bib` (BibTeX/BibLaTeX format),
508 `.ris` (RIS format), `.enl` (EndNote format),
509 `.xml` (EndNote XML format), `.wos` (ISI format),
510 `.medline` (MEDLINE format), `.copac` (Copac format),
511 or `.json` (citeproc JSON). If you want to use multiple
512 bibliographies, just use this option repeatedly.
514`--csl=`*FILE*
515: Specify [CSL] style to be used in formatting citations and
516 the bibliography. If *FILE* is not found, pandoc will look
517 for it in
519 $HOME/.csl
521 in unix and
523 C:\Documents And Settings\USERNAME\Application Data\csl
525 in Windows. If the `--csl` option is not specified, pandoc
526 will use a default style: either `default.csl` in the
527 user data directory (see `--data-dir`), or, if that is
528 not present, the Chicago author-date style.
530`--citation-abbreviations=`*FILE*
531: Specify a file containing abbreviations for journal titles and
532 other bibliographic fields (indicated by setting `form="short"`
533 in the CSL node for the field). The format is described at
534 <http://citationstylist.org/2011/10/19/abbreviations-for-zotero-test-release/>.
535 Here is a short example:
537 { "default": {
538 "container-title": {
539 "Lloyd's Law Reports": "Lloyd's Rep",
540 "Estates Gazette": "EG",
541 "Scots Law Times": "SLT"
542 }
543 }
544 }
546`--natbib`
547: Use natbib for citations in LaTeX output.
549`--biblatex`
550: Use biblatex for citations in LaTeX output.
552Math rendering in HTML
553----------------------
555`-m` [*URL*], `--latexmathml`[=*URL*]
556: Use the [LaTeXMathML] script to display embedded TeX math in HTML output.
557 To insert a link to a local copy of the `LaTeXMathML.js` script,
558 provide a *URL*. If no *URL* is provided, the contents of the
559 script will be inserted directly into the HTML header, preserving
560 portability at the price of efficiency. If you plan to use math on
561 several pages, it is much better to link to a copy of the script,
562 so it can be cached.
564`--mathml`[=*URL*]
565: Convert TeX math to MathML (in `docbook` as well as `html` and `html5`).
566 In standalone `html` output, a small javascript (or a link to such a
567 script if a *URL* is supplied) will be inserted that allows the MathML to
568 be viewed on some browsers.
570`--jsmath`[=*URL*]
571: Use [jsMath] to display embedded TeX math in HTML output.
572 The *URL* should point to the jsMath load script (e.g.
573 `jsMath/easy/load.js`); if provided, it will be linked to in
574 the header of standalone HTML documents. If a *URL* is not provided,
575 no link to the jsMath load script will be inserted; it is then
576 up to the author to provide such a link in the HTML template.
578`--mathjax`[=*URL*]
579: Use [MathJax] to display embedded TeX math in HTML output.
580 The *URL* should point to the `MathJax.js` load script.
581 If a *URL* is not provided, a link to the MathJax CDN will
582 be inserted.
584`--gladtex`
585: Enclose TeX math in `<eq>` tags in HTML output. These can then
586 be processed by [gladTeX] to produce links to images of the typeset
587 formulas.
589`--mimetex`[=*URL*]
590: Render TeX math using the [mimeTeX] CGI script. If *URL* is not
591 specified, it is assumed that the script is at `/cgi-bin/mimetex.cgi`.
593`--webtex`[=*URL*]
594: Render TeX formulas using an external script that converts TeX
595 formulas to images. The formula will be concatenated with the URL
596 provided. If *URL* is not specified, the Google Chart API will be used.
598Options for wrapper scripts
599---------------------------
601`--dump-args`
602: Print information about command-line arguments to *stdout*, then exit.
603 This option is intended primarily for use in wrapper scripts.
604 The first line of output contains the name of the output file specified
605 with the `-o` option, or `-` (for *stdout*) if no output file was
606 specified. The remaining lines contain the command-line arguments,
607 one per line, in the order they appear. These do not include regular
608 Pandoc options and their arguments, but do include any options appearing
609 after a `--` separator at the end of the line.
611`--ignore-args`
612: Ignore command-line arguments (for use in wrapper scripts).
613 Regular Pandoc options are not ignored. Thus, for example,
615 pandoc --ignore-args -o foo.html -s foo.txt -- -e latin1
617 is equivalent to
619 pandoc -o foo.html -s
621[LaTeXMathML]: http://math.etsu.edu/LaTeXMathML/
622[jsMath]: http://www.math.union.edu/~dpvc/jsmath/
623[MathJax]: http://www.mathjax.org/
624[gladTeX]: http://www.math.uio.no/~martingu/gladtex/index.html
625[mimeTeX]: http://www.forkosh.com/mimetex.html
626[CSL]: http://CitationStyles.org
628Templates
629=========
631When the `-s/--standalone` option is used, pandoc uses a template to
632add header and footer material that is needed for a self-standing
633document. To see the default template that is used, just type
635 pandoc -D FORMAT
637where `FORMAT` is the name of the output format. A custom template
638can be specified using the `--template` option. You can also override
639the system default templates for a given output format `FORMAT`
640by putting a file `templates/default.FORMAT` in the user data
641directory (see `--data-dir`, above). *Exceptions:* For `odt` output,
642customize the `default.opendocument` template. For `pdf` output,
643customize the `default.latex` template. For `epub` output, customize
644the `epub-page.html`, `epub-coverimage.html`, and `epub-titlepage.html`
645templates.
647Templates may contain *variables*. Variable names are sequences of
648alphanumerics, `-`, and `_`, starting with a letter. A variable name
649surrounded by `$` signs will be replaced by its value. For example,
650the string `$title$` in
652 <title>$title$</title>
654will be replaced by the document title.
656To write a literal `$` in a template, use `$$`.
658Some variables are set automatically by pandoc. These vary somewhat
659depending on the output format, but include:
661`header-includes`
662: contents specified by `-H/--include-in-header` (may have multiple
663 values)
664`toc`
665: non-null value if `--toc/--table-of-contents` was specified
666`include-before`
667: contents specified by `-B/--include-before-body` (may have
668 multiple values)
669`include-after`
670: contents specified by `-A/--include-after-body` (may have
671 multiple values)
672`body`
673: body of document
674`title`
675: title of document, as specified in title block
676`author`
677: author of document, as specified in title block (may have
678 multiple values)
679`date`
680: date of document, as specified in title block
681`lang`
682: language code for HTML or LaTeX documents
683`slidy-url`
684: base URL for Slidy documents (defaults to
685 `http://www.w3.org/Talks/Tools/Slidy2`)
686`s5-url`
687: base URL for S5 documents (defaults to `ui/default`)
688`fontsize`
689: font size (10pt, 11pt, 12pt) for LaTeX documents
690`documentclass`
691: document class for LaTeX documents
692`geometry`
693: options for LaTeX `geometry` class, e.g. `margin=1in`;
694 may be repeated for multiple options
695`mainfont`, `sansfont`, `monofont`, `mathfont`
696: fonts for LaTeX documents (works only with xelatex
697 and lualatex)
698`theme`
699: theme for LaTeX beamer documents
700`colortheme`
701: colortheme for LaTeX beamer documents
703Variables may be set at the command line using the `-V/--variable`
704option. This allows users to include custom variables in their
705templates.
707Templates may contain conditionals. The syntax is as follows:
709 $if(variable)$
710 X
711 $else$
712 Y
713 $endif$
715This will include `X` in the template if `variable` has a non-null
716value; otherwise it will include `Y`. `X` and `Y` are placeholders for
717any valid template text, and may include interpolated variables or other
718conditionals. The `$else$` section may be omitted.
720When variables can have multiple values (for example, `author` in
721a multi-author document), you can use the `$for$` keyword:
723 $for(author)$
724 <meta name="author" content="$author$" />
725 $endfor$
727You can optionally specify a separator to be used between
728consecutive items:
730 $for(author)$$author$$sep$, $endfor$
732If you use custom templates, you may need to revise them as pandoc
733changes. We recommend tracking the changes in the default templates,
734and modifying your custom templates accordingly. An easy way to do this
735is to fork the pandoc-templates repository
736(<http://github.com/jgm/pandoc-templates>) and merge in changes after each
737pandoc release.
739Pandoc's markdown
740=================
742Pandoc understands an extended and slightly revised version of
743John Gruber's [markdown] syntax. This document explains the syntax,
744noting differences from standard markdown. Except where noted, these
745differences can be suppressed by specifying the `--strict` command-line
746option.
748Philosophy
749----------
751Markdown is designed to be easy to write, and, even more importantly,
752easy to read:
754> A Markdown-formatted document should be publishable as-is, as plain
755> text, without looking like it's been marked up with tags or formatting
756> instructions.
757> -- [John Gruber](http://daringfireball.net/projects/markdown/syntax#philosophy)
759This principle has guided pandoc's decisions in finding syntax for
760tables, footnotes, and other extensions.
762There is, however, one respect in which pandoc's aims are different
763from the original aims of markdown. Whereas markdown was originally
764designed with HTML generation in mind, pandoc is designed for multiple
765output formats. Thus, while pandoc allows the embedding of raw HTML,
766it discourages it, and provides other, non-HTMLish ways of representing
767important document elements like definition lists, tables, mathematics, and
768footnotes.
770Paragraphs
771----------
773A paragraph is one or more lines of text followed by one or more blank line.
774Newlines are treated as spaces, so you can reflow your paragraphs as you like.
775If you need a hard line break, put two or more spaces at the end of a line,
776or type a backslash followed by a newline.
778Headers
779-------
781There are two kinds of headers, Setext and atx.
783### Setext-style headers ###
785A setext-style header is a line of text "underlined" with a row of `=` signs
786(for a level one header) of `-` signs (for a level two header):
788 A level-one header
789 ==================
791 A level-two header
792 ------------------
794The header text can contain inline formatting, such as emphasis (see
795[Inline formatting](#inline-formatting), below).
798### Atx-style headers ###
800An Atx-style header consists of one to six `#` signs and a line of
801text, optionally followed by any number of `#` signs. The number of
802`#` signs at the beginning of the line is the header level:
804 ## A level-two header
806 ### A level-three header ###
808As with setext-style headers, the header text can contain formatting:
810 # A level-one header with a [link](/url) and *emphasis*
812Standard markdown syntax does not require a blank line before a header.
813Pandoc does require this (except, of course, at the beginning of the
814document). The reason for the requirement is that it is all too easy for a
815`#` to end up at the beginning of a line by accident (perhaps through line
816wrapping). Consider, for example:
818 I like several of their flavors of ice cream:
819 #22, for example, and #5.
822### Header identifiers in HTML, LaTeX, and ConTeXt ###
824*Pandoc extension*.
826Each header element in pandoc's HTML and ConTeXt output is given a
827unique identifier. This identifier is based on the text of the header.
828To derive the identifier from the header text,
830 - Remove all formatting, links, etc.
831 - Remove all punctuation, except underscores, hyphens, and periods.
832 - Replace all spaces and newlines with hyphens.
833 - Convert all alphabetic characters to lowercase.
834 - Remove everything up to the first letter (identifiers may
835 not begin with a number or punctuation mark).
836 - If nothing is left after this, use the identifier `section`.
838Thus, for example,
840 Header Identifier
841 ------------------------------- ----------------------------
842 Header identifiers in HTML `header-identifiers-in-html`
843 *Dogs*?--in *my* house? `dogs--in-my-house`
844 [HTML], [S5], or [RTF]? `html-s5-or-rtf`
845 3. Applications `applications`
846 33 `section`
848These rules should, in most cases, allow one to determine the identifier
849from the header text. The exception is when several headers have the
850same text; in this case, the first will get an identifier as described
851above; the second will get the same identifier with `-1` appended; the
852third with `-2`; and so on.
854These identifiers are used to provide link targets in the table of
855contents generated by the `--toc|--table-of-contents` option. They
856also make it easy to provide links from one section of a document to
857another. A link to this section, for example, might look like this:
859 See the section on
860 [header identifiers](#header-identifiers-in-html).
862Note, however, that this method of providing links to sections works
863only in HTML, LaTeX, and ConTeXt formats.
865If the `--section-divs` option is specified, then each section will
866be wrapped in a `div` (or a `section`, if `--html5` was specified),
867and the identifier will be attached to the enclosing `<div>`
868(or `<section>`) tag rather than the header itself. This allows entire
869sections to be manipulated using javascript or treated differently in
870CSS.
873Block quotations
874----------------
876Markdown uses email conventions for quoting blocks of text.
877A block quotation is one or more paragraphs or other block elements
878(such as lists or headers), with each line preceded by a `>` character
879and a space. (The `>` need not start at the left margin, but it should
880not be indented more than three spaces.)
882 > This is a block quote. This
883 > paragraph has two lines.
884 >
885 > 1. This is a list inside a block quote.
886 > 2. Second item.
888A "lazy" form, which requires the `>` character only on the first
889line of each block, is also allowed:
891 > This is a block quote. This
892 paragraph has two lines.
894 > 1. This is a list inside a block quote.
895 2. Second item.
897Among the block elements that can be contained in a block quote are
898other block quotes. That is, block quotes can be nested:
900 > This is a block quote.
901 >
902 > > A block quote within a block quote.
904Standard markdown syntax does not require a blank line before a block
905quote. Pandoc does require this (except, of course, at the beginning of the
906document). The reason for the requirement is that it is all too easy for a
907`>` to end up at the beginning of a line by accident (perhaps through line
908wrapping). So, unless `--strict` is used, the following does not produce
909a nested block quote in pandoc:
911 > This is a block quote.
912 >> Nested.
915Verbatim (code) blocks
916----------------------
918### Indented code blocks ###
920A block of text indented four spaces (or one tab) is treated as verbatim
921text: that is, special characters do not trigger special formatting,
922and all spaces and line breaks are preserved. For example,
924 if (a > 3) {
925 moveShip(5 * gravity, DOWN);
926 }
928The initial (four space or one tab) indentation is not considered part
929of the verbatim text, and is removed in the output.
931Note: blank lines in the verbatim text need not begin with four spaces.
934### Delimited code blocks ###
936*Pandoc extension*.
938In addition to standard indented code blocks, Pandoc supports
939*delimited* code blocks. These begin with a row of three or more
940tildes (`~`) or backticks (`` ` ``) and end with a row of tildes or
941backticks that must be at least as long as the starting row. Everything
942between these lines is treated as code. No indentation is necessary:
944 ~~~~~~~
945 if (a > 3) {
946 moveShip(5 * gravity, DOWN);
947 }
948 ~~~~~~~
950Like regular code blocks, delimited code blocks must be separated
951from surrounding text by blank lines.
953If the code itself contains a row of tildes or backticks, just use a longer
954row of tildes or backticks at the start and end:
956 ~~~~~~~~~~~~~~~~
957 ~~~~~~~~~~
958 code including tildes
959 ~~~~~~~~~~
960 ~~~~~~~~~~~~~~~~
962Optionally, you may attach attributes to the code block using
963this syntax:
965 ~~~~ {#mycode .haskell .numberLines startFrom="100"}
966 qsort [] = []
967 qsort (x:xs) = qsort (filter (< x) xs) ++ [x] ++
968 qsort (filter (>= x) xs)
969 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
971Here `mycode` is an identifier, `haskell` and `numberLines` are classes, and
972`startFrom` is an attribute with value `100`. Some output formats can use this
973information to do syntax highlighting. Currently, the only output formats
974that uses this information are HTML and LaTeX. If highlighting is supported
975for your output format and language, then the code block above will appear
976highlighted, with numbered lines. (To see which languages are supported, do
977`pandoc --version`.) Otherwise, the code block above will appear as follows:
979 <pre id="mycode" class="haskell numberLines" startFrom="100">
980 <code>
981 ...
982 </code>
983 </pre>
985A shortcut form can also be used for specifying the language of
986the code block:
988 ```haskell
989 qsort [] = []
990 ```
992This is equivalent to:
994 ``` {.haskell}
995 qsort [] = []
996 ```
998To prevent all highlighting, use the `--no-highlight` flag.
999To set the highlighting style, use `--highlight-style`.
1001Lists
1002-----
1004### Bullet lists ###
1006A bullet list is a list of bulleted list items. A bulleted list
1007item begins with a bullet (`*`, `+`, or `-`). Here is a simple
1008example:
1010 * one
1011 * two
1012 * three
1014This will produce a "compact" list. If you want a "loose" list, in which
1015each item is formatted as a paragraph, put spaces between the items:
1017 * one
1019 * two
1021 * three
1023The bullets need not be flush with the left margin; they may be
1024indented one, two, or three spaces. The bullet must be followed
1025by whitespace.
1027List items look best if subsequent lines are flush with the first
1028line (after the bullet):
1030 * here is my first
1031 list item.
1032 * and my second.
1034But markdown also allows a "lazy" format:
1036 * here is my first
1037 list item.
1038 * and my second.
1040### The four-space rule ###
1042A list item may contain multiple paragraphs and other block-level
1043content. However, subsequent paragraphs must be preceded by a blank line
1044and indented four spaces or a tab. The list will look better if the first
1045paragraph is aligned with the rest:
1047 * First paragraph.
1049 Continued.
1051 * Second paragraph. With a code block, which must be indented
1052 eight spaces:
1054 { code }
1056List items may include other lists. In this case the preceding blank
1057line is optional. The nested list must be indented four spaces or
1058one tab:
1060 * fruits
1061 + apples
1062 - macintosh
1063 - red delicious
1064 + pears
1065 + peaches
1066 * vegetables
1067 + brocolli
1068 + chard
1070As noted above, markdown allows you to write list items "lazily," instead of
1071indenting continuation lines. However, if there are multiple paragraphs or
1072other blocks in a list item, the first line of each must be indented.
1074 + A lazy, lazy, list
1075 item.
1077 + Another one; this looks
1078 bad but is legal.
1080 Second paragraph of second
1081 list item.
1083**Note:** Although the four-space rule for continuation paragraphs
1084comes from the official [markdown syntax guide], the reference implementation,
1085`Markdown.pl`, does not follow it. So pandoc will give different results than
1086`Markdown.pl` when authors have indented continuation paragraphs fewer than
1087four spaces.
1089The [markdown syntax guide] is not explicit whether the four-space
1090rule applies to *all* block-level content in a list item; it only
1091mentions paragraphs and code blocks. But it implies that the rule
1092applies to all block-level content (including nested lists), and
1093pandoc interprets it that way.
1095 [markdown syntax guide]:
1096 http://daringfireball.net/projects/markdown/syntax#list
1098### Ordered lists ###
1100Ordered lists work just like bulleted lists, except that the items
1101begin with enumerators rather than bullets.
1103In standard markdown, enumerators are decimal numbers followed
1104by a period and a space. The numbers themselves are ignored, so
1105there is no difference between this list:
1107 1. one
1108 2. two
1109 3. three
1111and this one:
1113 5. one
1114 7. two
1115 1. three
1117*Pandoc extension*.
1119Unlike standard markdown, Pandoc allows ordered list items to be marked
1120with uppercase and lowercase letters and roman numerals, in addition to
1121arabic numerals. List markers may be enclosed in parentheses or followed by a
1122single right-parentheses or period. They must be separated from the
1123text that follows by at least one space, and, if the list marker is a
1124capital letter with a period, by at least two spaces.[^2]
1126[^2]: The point of this rule is to ensure that normal paragraphs
1127 starting with people's initials, like
1129 B. Russell was an English philosopher.
1131 do not get treated as list items.
1133 This rule will not prevent
1135 (C) 2007 Joe Smith
1137 from being interpreted as a list item. In this case, a backslash
1138 escape can be used:
1140 (C\) 2007 Joe Smith
1142Pandoc also pays attention to the type of list marker used, and to the
1143starting number, and both of these are preserved where possible in the
1144output format. Thus, the following yields a list with numbers followed
1145by a single parenthesis, starting with 9, and a sublist with lowercase
1146roman numerals:
1148 9) Ninth
1149 10) Tenth
1150 11) Eleventh
1151 i. subone
1152 ii. subtwo
1153 iii. subthree
1155Note that Pandoc pays attention only to the *starting* marker in a list.
1156So, the following yields a list numbered sequentially starting from 2:
1158 (2) Two
1159 (5) Three
1160 1. Four
1161 * Five
1163If default list markers are desired, use `#.`:
1165 #. one
1166 #. two
1167 #. three
1170### Definition lists ###
1172*Pandoc extension*.
1174Pandoc supports definition lists, using a syntax inspired by
1175[PHP Markdown Extra] and [reStructuredText]:[^3]
1177 Term 1
1179 : Definition 1
1181 Term 2 with *inline markup*
1183 : Definition 2
1185 { some code, part of Definition 2 }
1187 Third paragraph of definition 2.
1189Each term must fit on one line, which may optionally be followed by
1190a blank line, and must be followed by one or more definitions.
1191A definition begins with a colon or tilde, which may be indented one
1192or two spaces. The body of the definition (including the first line,
1193aside from the colon or tilde) should be indented four spaces. A term may have
1194multiple definitions, and each definition may consist of one or more block
1195elements (paragraph, code block, list, etc.), each indented four spaces or one
1196tab stop.
1198If you leave space after the definition (as in the example above),
1199the blocks of the definitions will be considered paragraphs. In some
1200output formats, this will mean greater spacing between term/definition
1201pairs. For a compact definition list, do not leave space between the
1202definition and the next term:
1204 Term 1
1205 ~ Definition 1
1206 Term 2
1207 ~ Definition 2a
1208 ~ Definition 2b
1210[^3]: I have also been influenced by the suggestions of [David Wheeler](http://www.justatheory.com/computers/markup/modest-markdown-proposal.html).
1212[PHP Markdown Extra]: http://www.michelf.com/projects/php-markdown/extra/
1215### Numbered example lists ###
1217*Pandoc extension*.
1219The special list marker `@` can be used for sequentially numbered
1220examples. The first list item with a `@` marker will be numbered '1',
1221the next '2', and so on, throughout the document. The numbered examples
1222need not occur in a single list; each new list using `@` will take up
1223where the last stopped. So, for example:
1225 (@) My first example will be numbered (1).
1226 (@) My second example will be numbered (2).
1228 Explanation of examples.
1230 (@) My third example will be numbered (3).
1232Numbered examples can be labeled and referred to elsewhere in the
1233document:
1235 (@good) This is a good example.
1237 As (@good) illustrates, ...
1239The label can be any string of alphanumeric characters, underscores,
1240or hyphens.
1243### Compact and loose lists ###
1245Pandoc behaves differently from `Markdown.pl` on some "edge
1246cases" involving lists. Consider this source:
1248 + First
1249 + Second:
1250 - Fee
1251 - Fie
1252 - Foe
1254 + Third
1256Pandoc transforms this into a "compact list" (with no `<p>` tags around
1257"First", "Second", or "Third"), while markdown puts `<p>` tags around
1258"Second" and "Third" (but not "First"), because of the blank space
1259around "Third". Pandoc follows a simple rule: if the text is followed by
1260a blank line, it is treated as a paragraph. Since "Second" is followed
1261by a list, and not a blank line, it isn't treated as a paragraph. The
1262fact that the list is followed by a blank line is irrelevant. (Note:
1263Pandoc works this way even when the `--strict` option is specified. This
1264behavior is consistent with the official markdown syntax description,
1265even though it is different from that of `Markdown.pl`.)
1268### Ending a list ###
1270What if you want to put an indented code block after a list?
1272 - item one
1273 - item two
1275 { my code block }
1277Trouble! Here pandoc (like other markdown implementations) will treat
1278`{ my code block }` as the second paragraph of item two, and not as
1279a code block.
1281To "cut off" the list after item two, you can insert some non-indented
1282content, like an HTML comment, which won't produce visible output in
1283any format:
1285 - item one
1286 - item two
1288 <!-- end of list -->
1290 { my code block }
1292You can use the same trick if you want two consecutive lists instead
1293of one big list:
1295 1. one
1296 2. two
1297 3. three
1299 <!-- -->
1301 1. uno
1302 2. dos
1303 3. tres
1305Horizontal rules
1306----------------
1308A line containing a row of three or more `*`, `-`, or `_` characters
1309(optionally separated by spaces) produces a horizontal rule:
1311 * * * *
1313 ---------------
1316Tables
1317------
1319*Pandoc extension*.
1321Three kinds of tables may be used. All three kinds presuppose the use of
1322a fixed-width font, such as Courier.
1324**Simple tables** look like this:
1326 Right Left Center Default
1327 ------- ------ ---------- -------
1328 12 12 12 12
1329 123 123 123 123
1330 1 1 1 1
1332 Table: Demonstration of simple table syntax.
1334The headers and table rows must each fit on one line. Column
1335alignments are determined by the position of the header text relative
1336to the dashed line below it:[^4]
1338 - If the dashed line is flush with the header text on the right side
1339 but extends beyond it on the left, the column is right-aligned.
1340 - If the dashed line is flush with the header text on the left side
1341 but extends beyond it on the right, the column is left-aligned.
1342 - If the dashed line extends beyond the header text on both sides,
1343 the column is centered.
1344 - If the dashed line is flush with the header text on both sides,
1345 the default alignment is used (in most cases, this will be left).
1347[^4]: This scheme is due to Michel Fortin, who proposed it on the
1348 [Markdown discussion list](http://six.pairlist.net/pipermail/markdown-discuss/2005-March/001097.html).
1350The table must end with a blank line, or a line of dashes followed by
1351a blank line. A caption may optionally be provided (as illustrated in
1352the example above). A caption is a paragraph beginning with the string
1353`Table:` (or just `:`), which will be stripped off. It may appear either
1354before or after the table.
1356The column headers may be omitted, provided a dashed line is used
1357to end the table. For example:
1359 ------- ------ ---------- -------
1360 12 12 12 12
1361 123 123 123 123
1362 1 1 1 1
1363 ------- ------ ---------- -------
1365When headers are omitted, column alignments are determined on the basis
1366of the first line of the table body. So, in the tables above, the columns
1367would be right, left, center, and right aligned, respectively.
1369**Multiline tables** allow headers and table rows to span multiple lines
1370of text (but cells that span multiple columns or rows of the table are
1371not supported). Here is an example:
1373 -------------------------------------------------------------
1374 Centered Default Right Left
1375 Header Aligned Aligned Aligned
1376 ----------- ------- --------------- -------------------------
1377 First row 12.0 Example of a row that
1378 spans multiple lines.
1380 Second row 5.0 Here's another one. Note
1381 the blank line between
1382 rows.
1383 -------------------------------------------------------------
1385 Table: Here's the caption. It, too, may span
1386 multiple lines.
1388These work like simple tables, but with the following differences:
1390 - They must begin with a row of dashes, before the header text
1391 (unless the headers are omitted).
1392 - They must end with a row of dashes, then a blank line.
1393 - The rows must be separated by blank lines.
1395In multiline tables, the table parser pays attention to the widths of
1396the columns, and the writers try to reproduce these relative widths in
1397the output. So, if you find that one of the columns is too narrow in the
1398output, try widening it in the markdown source.
1400Headers may be omitted in multiline tables as well as simple tables:
1402 ----------- ------- --------------- -------------------------
1403 First row 12.0 Example of a row that
1404 spans multiple lines.
1406 Second row 5.0 Here's another one. Note
1407 the blank line between
1408 rows.
1409 -------------------------------------------------------------
1411 : Here's a multiline table without headers.
1413It is possible for a multiline table to have just one row, but the row
1414should be followed by a blank line (and then the row of dashes that ends
1415the table), or the table may be interpreted as a simple table.
1417**Grid tables** look like this:
1419 : Sample grid table.
1421 +---------------+---------------+--------------------+
1422 | Fruit | Price | Advantages |
1423 +===============+===============+====================+
1424 | Bananas | $1.34 | - built-in wrapper |
1425 | | | - bright color |
1426 +---------------+---------------+--------------------+
1427 | Oranges | $2.10 | - cures scurvy |
1428 | | | - tasty |
1429 +---------------+---------------+--------------------+
1431The row of `=`s separates the header from the table body, and can be
1432omitted for a headerless table. The cells of grid tables may contain
1433arbitrary block elements (multiple paragraphs, code blocks, lists,
1434etc.). Alignments are not supported, nor are cells that span multiple
1435columns or rows. Grid tables can be created easily using [Emacs table mode].
1437 [Emacs table mode]: http://table.sourceforge.net/
1440Title block
1441-----------
1443*Pandoc extension*.
1445If the file begins with a title block
1447 % title
1448 % author(s) (separated by semicolons)
1449 % date
1451it will be parsed as bibliographic information, not regular text. (It
1452will be used, for example, in the title of standalone LaTeX or HTML
1453output.) The block may contain just a title, a title and an author,
1454or all three elements. If you want to include an author but no
1455title, or a title and a date but no author, you need a blank line:
1458 % Author
1460 % My title
1462 % June 15, 2006
1464The title may occupy multiple lines, but continuation lines must
1465begin with leading space, thus:
1467 % My title
1468 on multiple lines
1470If a document has multiple authors, the authors may be put on
1471separate lines with leading space, or separated by semicolons, or
1472both. So, all of the following are equivalent:
1474 % Author One
1475 Author Two
1477 % Author One; Author Two
1479 % Author One;
1480 Author Two
1482The date must fit on one line.
1484All three metadata fields may contain standard inline formatting
1485(italics, links, footnotes, etc.).
1487Title blocks will always be parsed, but they will affect the output only
1488when the `--standalone` (`-s`) option is chosen. In HTML output, titles
1489will appear twice: once in the document head -- this is the title that
1490will appear at the top of the window in a browser -- and once at the
1491beginning of the document body. The title in the document head can have
1492an optional prefix attached (`--title-prefix` or `-T` option). The title
1493in the body appears as an H1 element with class "title", so it can be
1494suppressed or reformatted with CSS. If a title prefix is specified with
1495`-T` and no title block appears in the document, the title prefix will
1496be used by itself as the HTML title.
1498The man page writer extracts a title, man page section number, and
1499other header and footer information from the title line. The title
1500is assumed to be the first word on the title line, which may optionally
1501end with a (single-digit) section number in parentheses. (There should
1502be no space between the title and the parentheses.) Anything after
1503this is assumed to be additional footer and header text. A single pipe
1504character (`|`) should be used to separate the footer text from the header
1505text. Thus,
1507 % PANDOC(1)
1509will yield a man page with the title `PANDOC` and section 1.
1511 % PANDOC(1) Pandoc User Manuals
1513will also have "Pandoc User Manuals" in the footer.
1515 % PANDOC(1) Pandoc User Manuals | Version 4.0
1517will also have "Version 4.0" in the header.
1520Backslash escapes
1521-----------------
1523Except inside a code block or inline code, any punctuation or space
1524character preceded by a backslash will be treated literally, even if it
1525would normally indicate formatting. Thus, for example, if one writes
1527 *\*hello\**
1529one will get
1531 <em>*hello*</em>
1533instead of
1535 <strong>hello</strong>
1537This rule is easier to remember than standard markdown's rule,
1538which allows only the following characters to be backslash-escaped:
1540 \`*_{}[]()>#+-.!
1542(However, if the `--strict` option is supplied, the standard
1543markdown rule will be used.)
1545A backslash-escaped space is parsed as a nonbreaking space. It will
1546appear in TeX output as `~` and in HTML and XML as `\&#160;` or
1547`\&nbsp;`.
1549A backslash-escaped newline (i.e. a backslash occurring at the end of
1550a line) is parsed as a hard line break. It will appear in TeX output as
1551`\\` and in HTML as `<br />`. This is a nice alternative to
1552markdown's "invisible" way of indicating hard line breaks using
1553two trailing spaces on a line.
1555Backslash escapes do not work in verbatim contexts.
1557Smart punctuation
1558-----------------
1560*Pandoc extension*.
1562If the `--smart` option is specified, pandoc will produce typographically
1563correct output, converting straight quotes to curly quotes, `---` to
1564em-dashes, `--` to en-dashes, and `...` to ellipses. Nonbreaking spaces
1565are inserted after certain abbreviations, such as "Mr."
1567Note: if your LaTeX template uses the `csquotes` package, pandoc will
1568detect automatically this and use `\enquote{...}` for quoted text.
1570Inline formatting
1571-----------------
1573### Emphasis ###
1575To *emphasize* some text, surround it with `*`s or `_`, like this:
1577 This text is _emphasized with underscores_, and this
1578 is *emphasized with asterisks*.
1580Double `*` or `_` produces **strong emphasis**:
1582 This is **strong emphasis** and __with underscores__.
1584A `*` or `_` character surrounded by spaces, or backslash-escaped,
1585will not trigger emphasis:
1587 This is * not emphasized *, and \*neither is this\*.
1589Because `_` is sometimes used inside words and identifiers,
1590pandoc does not interpret a `_` surrounded by alphanumeric
1591characters as an emphasis marker. If you want to emphasize
1592just part of a word, use `*`:
1594 feas*ible*, not feas*able*.
1597### Strikeout ###
1599*Pandoc extension*.
1601To strikeout a section of text with a horizontal line, begin and end it
1602with `~~`. Thus, for example,
1604 This ~~is deleted text.~~
1607### Superscripts and subscripts ###
1609*Pandoc extension*.
1611Superscripts may be written by surrounding the superscripted text by `^`
1612characters; subscripts may be written by surrounding the subscripted
1613text by `~` characters. Thus, for example,
1615 H~2~O is a liquid. 2^10^ is 1024.
1617If the superscripted or subscripted text contains spaces, these spaces
1618must be escaped with backslashes. (This is to prevent accidental
1619superscripting and subscripting through the ordinary use of `~` and `^`.)
1620Thus, if you want the letter P with 'a cat' in subscripts, use
1621`P~a\ cat~`, not `P~a cat~`.
1624### Verbatim ###
1626To make a short span of text verbatim, put it inside backticks:
1628 What is the difference between `>>=` and `>>`?
1630If the verbatim text includes a backtick, use double backticks:
1632 Here is a literal backtick `` ` ``.
1634(The spaces after the opening backticks and before the closing
1635backticks will be ignored.)
1637The general rule is that a verbatim span starts with a string
1638of consecutive backticks (optionally followed by a space)
1639and ends with a string of the same number of backticks (optionally
1640preceded by a space).
1642Note that backslash-escapes (and other markdown constructs) do not
1643work in verbatim contexts:
1645 This is a backslash followed by an asterisk: `\*`.
1647Attributes can be attached to verbatim text, just as with
1648[delimited code blocks](#delimited-code-blocks):
1650 `<$>`{.haskell}
1652Math
1653----
1655*Pandoc extension*.
1657Anything between two `$` characters will be treated as TeX math. The
1658opening `$` must have a character immediately to its right, while the
1659closing `$` must have a character immediately to its left. Thus,
1660`$20,000 and $30,000` won't parse as math. If for some reason
1661you need to enclose text in literal `$` characters, backslash-escape
1662them and they won't be treated as math delimiters.
1664TeX math will be printed in all output formats. How it is rendered
1665depends on the output format:
1667Markdown, LaTeX, Org-Mode, ConTeXt
1668 ~ It will appear verbatim between `$` characters.
1670reStructuredText
1671 ~ It will be rendered using an interpreted text role `:math:`, as described
1672 [here](http://www.american.edu/econ/itex2mml/mathhack.rst).
1674AsciiDoc
1675 ~ It will be rendered as `latexmath:[...]`.
1677Texinfo
1678 ~ It will be rendered inside a `@math` command.
1680groff man
1681 ~ It will be rendered verbatim without `$`'s.
1683MediaWiki
1684 ~ It will be rendered inside `<math>` tags.
1686Textile
1687 ~ It will be rendered inside `<span class="math">` tags.
1689RTF, OpenDocument, ODT
1690 ~ It will be rendered, if possible, using unicode characters,
1691 and will otherwise appear verbatim.
1693Docbook
1694 ~ If the `--mathml` flag is used, it will be rendered using mathml
1695 in an `inlineequation` or `informalequation` tag. Otherwise it
1696 will be rendered, if possible, using unicode characters.
1698Docx
1699 ~ It will be rendered using OMML math markup.
1701HTML, Slidy, DZSlides, S5, EPUB
1702 ~ The way math is rendered in HTML will depend on the
1703 command-line options selected:
1705 1. The default is to render TeX math as far as possible using unicode
1706 characters, as with RTF, DocBook, and OpenDocument output. Formulas
1707 are put inside a `span` with `class="math"`, so that they may be
1708 styled differently from the surrounding text if needed.
1710 2. If the `--latexmathml` option is used, TeX math will be displayed
1711 between $ or $$ characters and put in `<span>` tags with class `LaTeX`.
1712 The [LaTeXMathML] script will be used to render it as formulas.
1713 (This trick does not work in all browsers, but it works in Firefox.
1714 In browsers that do not support LaTeXMathML, TeX math will appear
1715 verbatim between $ characters.)
1717 3. If the `--jsmath` option is used, TeX math will be put inside
1718 `<span>` tags (for inline math) or `<div>` tags (for display math)
1719 with class `math`. The [jsMath] script will be used to render
1720 it.
1722 4. If the `--mimetex` option is used, the [mimeTeX] CGI script will
1723 be called to generate images for each TeX formula. This should
1724 work in all browsers. The `--mimetex` option takes an optional URL
1725 as argument. If no URL is specified, it will be assumed that the
1726 mimeTeX CGI script is at `/cgi-bin/mimetex.cgi`.
1728 5. If the `--gladtex` option is used, TeX formulas will be enclosed
1729 in `<eq>` tags in the HTML output. The resulting `htex` file may then
1730 be processed by [gladTeX], which will produce image files for each
1731 formula and an `html` file with links to these images. So, the
1732 procedure is:
1734 pandoc -s --gladtex myfile.txt -o myfile.htex
1735 gladtex -d myfile-images myfile.htex
1736 # produces myfile.html and images in myfile-images
1738 6. If the `--webtex` option is used, TeX formulas will be converted
1739 to `<img>` tags that link to an external script that converts
1740 formulas to images. The formula will be URL-encoded and concatenated
1741 with the URL provided. If no URL is specified, the Google Chart
1742 API will be used (`http://chart.apis.google.com/chart?cht=tx&chl=`).
1745Raw HTML
1746--------
1748Markdown allows you to insert raw HTML (or DocBook) anywhere in a document
1749(except verbatim contexts, where `<`, `>`, and `&` are interpreted
1750literally).
1752The raw HTML is passed through unchanged in HTML, S5, Slidy, DZSlides, EPUB,
1753Markdown, and Textile output, and suppressed in other formats.
1755*Pandoc extension*.
1757Standard markdown allows you to include HTML "blocks": blocks
1758of HTML between balanced tags that are separated from the surrounding text
1759with blank lines, and start and end at the left margin. Within
1760these blocks, everything is interpreted as HTML, not markdown;
1761so (for example), `*` does not signify emphasis.
1763Pandoc behaves this way when `--strict` is specified; but by default,
1764pandoc interprets material between HTML block tags as markdown.
1765Thus, for example, Pandoc will turn
1767 <table>
1768 <tr>
1769 <td>*one*</td>
1770 <td>[a link](http://google.com)</td>
1771 </tr>
1772 </table>
1774into
1776 <table>
1777 <tr>
1778 <td><em>one</em></td>
1779 <td><a href="http://google.com">a link</a></td>
1780 </tr>
1781 </table>
1783whereas `Markdown.pl` will preserve it as is.
1785There is one exception to this rule: text between `<script>` and
1786`<style>` tags is not interpreted as markdown.
1788This departure from standard markdown should make it easier to mix
1789markdown with HTML block elements. For example, one can surround
1790a block of markdown text with `<div>` tags without preventing it
1791from being interpreted as markdown.
1793Raw TeX
1794-------
1796*Pandoc extension*.
1798In addition to raw HTML, pandoc allows raw LaTeX, TeX, and ConTeXt to be
1799included in a document. Inline TeX commands will be preserved and passed
1800unchanged to the LaTeX and ConTeXt writers. Thus, for example, you can use
1801LaTeX to include BibTeX citations:
1803 This result was proved in \cite{jones.1967}.
1805Note that in LaTeX environments, like
1807 \begin{tabular}{|l|l|}\hline
1808 Age & Frequency \\ \hline
1809 18--25 & 15 \\
1810 26--35 & 33 \\
1811 36--45 & 22 \\ \hline
1812 \end{tabular}
1814the material between the begin and end tags will be interpreted as raw
1815LaTeX, not as markdown.
1817Inline LaTeX is ignored in output formats other than Markdown, LaTeX,
1818and ConTeXt.
1820### Macros ###
1822For output formats other than LaTeX, pandoc will parse LaTeX `\newcommand` and
1823`\renewcommand` definitions and apply the resulting macros to all LaTeX
1824math. So, for example, the following will work in all output formats,
1825not just LaTeX:
1827 \newcommand{\tuple}[1]{\langle #1 \rangle}
1829 $\tuple{a, b, c}$
1831In LaTeX output, the `\newcommand` definition will simply be passed
1832unchanged to the output.
1835Links
1836-----
1838Markdown allows links to be specified in several ways.
1840### Automatic links ###
1842If you enclose a URL or email address in pointy brackets, it
1843will become a link:
1845 <http://google.com>
1846 <sam@green.eggs.ham>
1849### Inline links ###
1851An inline link consists of the link text in square brackets,
1852followed by the URL in parentheses. (Optionally, the URL can
1853be followed by a link title, in quotes.)
1855 This is an [inline link](/url), and here's [one with
1856 a title](http://fsf.org "click here for a good time!").
1858There can be no space between the bracketed part and the parenthesized part.
1859The link text can contain formatting (such as emphasis), but the title cannot.
1862### Reference links ###
1864An *explicit* reference link has two parts, the link itself and the link
1865definition, which may occur elsewhere in the document (either
1866before or after the link).
1868The link consists of link text in square brackets, followed by a label in
1869square brackets. (There can be space between the two.) The link definition
1870must begin at the left margin or indented no more than three spaces. It
1871consists of the bracketed label, followed by a colon and a space, followed by
1872the URL, and optionally (after a space) a link title either in quotes or in
1873parentheses.
1875Here are some examples:
1877 [my label 1]: /foo/bar.html "My title, optional"
1878 [my label 2]: /foo
1879 [my label 3]: http://fsf.org (The free software foundation)
1880 [my label 4]: /bar#special 'A title in single quotes'
1882The URL may optionally be surrounded by angle brackets:
1884 [my label 5]: <http://foo.bar.baz>
1886The title may go on the next line:
1888 [my label 3]: http://fsf.org
1889 "The free software foundation"
1891Note that link labels are not case sensitive. So, this will work:
1893 Here is [my link][FOO]
1895 [Foo]: /bar/baz
1897In an *implicit* reference link, the second pair of brackets is
1898empty, or omitted entirely:
1900 See [my website][], or [my website].
1902 [my website]: http://foo.bar.baz
1904### Internal links
1906To link to another section of the same document, use the automatically
1907generated identifier (see [Header identifiers in HTML, LaTeX, and
1908ConTeXt](#header-identifiers-in-html-latex-and-context), below).
1909For example:
1911 See the [Introduction](#introduction).
1915 See the [Introduction].
1917 [Introduction]: #introduction
1919Internal links are currently supported for HTML formats (including
1920HTML slide shows and EPUB), LaTeX, and ConTeXt.
1922Images
1923------
1925A link immediately preceded by a `!` will be treated as an image.
1926The link text will be used as the image's alt text:
1928 ![la lune](lalune.jpg "Voyage to the moon")
1930 ![movie reel]
1932 [movie reel]: movie.gif
1934### Pictures with captions ###
1936*Pandoc extension*.
1938An image occurring by itself in a paragraph will be rendered as
1939a figure with a caption.[^5] (In LaTeX, a figure environment will be
1940used; in HTML, the image will be placed in a `div` with class
1941`figure`, together with a caption in a `p` with class `caption`.)
1942The image's alt text will be used as the caption.
1944 ![This is the caption](/url/of/image.png)
1946[^5]: This feature is not yet implemented for RTF, OpenDocument, or
1947 ODT. In those formats, you'll just get an image in a paragraph by
1948 itself, with no caption.
1950If you just want a regular inline image, just make sure it is not
1951the only thing in the paragraph. One way to do this is to insert a
1952nonbreaking space after the image:
1954 ![This image won't be a figure](/url/of/image.png)\
1957Footnotes
1958---------
1960*Pandoc extension*.
1962Pandoc's markdown allows footnotes, using the following syntax:
1964 Here is a footnote reference,[^1] and another.[^longnote]
1966 [^1]: Here is the footnote.
1968 [^longnote]: Here's one with multiple blocks.
1970 Subsequent paragraphs are indented to show that they
1971 belong to the previous footnote.
1973 { some.code }
1975 The whole paragraph can be indented, or just the first
1976 line. In this way, multi-paragraph footnotes work like
1977 multi-paragraph list items.
1979 This paragraph won't be part of the note, because it
1980 isn't indented.
1982The identifiers in footnote references may not contain spaces, tabs,
1983or newlines. These identifiers are used only to correlate the
1984footnote reference with the note itself; in the output, footnotes
1985will be numbered sequentially.
1987The footnotes themselves need not be placed at the end of the
1988document. They may appear anywhere except inside other block elements
1989(lists, block quotes, tables, etc.).
1991Inline footnotes are also allowed (though, unlike regular notes,
1992they cannot contain multiple paragraphs). The syntax is as follows:
1994 Here is an inline note.^[Inlines notes are easier to write, since
1995 you don't have to pick an identifier and move down to type the
1996 note.]
1998Inline and regular footnotes may be mixed freely.
2001Citations
2002---------
2004*Pandoc extension*.
2006Pandoc can automatically generate citations and a bibliography in a number of
2007styles (using Andrea Rossato's `hs-citeproc`). In order to use this feature,
2008you will need a bibliographic database in one of the following formats:
2010 Format File extension
2011 ------------ --------------
2012 MODS .mods
2013 BibTeX/BibLaTeX .bib
2014 RIS .ris
2015 EndNote .enl
2016 EndNote XML .xml
2017 ISI .wos
2018 MEDLINE .medline
2019 Copac .copac
2020 JSON citeproc .json
2022You will need to specify the bibliography file using the `--bibliography`
2023command-line option (which may be repeated if you have several
2024bibliographies).
2026By default, pandoc will use a Chicago author-date format for citations
2027and references. To use another style, you will need to use the
2028`--csl` option to specify a [CSL] 1.0 style file. A primer on
2029creating and modifying CSL styles can be found at
2030<http://citationstyles.org/downloads/primer.html>.
2031A repository of CSL styles can be found at
2032<https://github.com/citation-style-language/styles>.
2033See also <http://zotero.org/styles> for easy browsing.
2035Citations go inside square brackets and are separated by semicolons.
2036Each citation must have a key, composed of '@' + the citation
2037identifier from the database, and may optionally have a prefix,
2038a locator, and a suffix. Here are some examples:
2040 Blah blah [see @doe99, pp. 33-35; also @smith04, ch. 1].
2042 Blah blah [@doe99, pp. 33-35, 38-39 and *passim*].
2044 Blah blah [@smith04; @doe99].
2046A minus sign (`-`) before the `@` will suppress mention of
2047the author in the citation. This can be useful when the
2048author is already mentioned in the text:
2050 Smith says blah [-@smith04].
2052You can also write an in-text citation, as follows:
2054 @smith04 says blah.
2056 @smith04 [p. 33] says blah.
2058If the style calls for a list of works cited, it will be placed
2059at the end of the document. Normally, you will want to end your
2060document with an appropriate header:
2062 last paragraph...
2064 # References
2066The bibliography will be inserted after this header.
2069Producing slide shows with Pandoc
2070=================================
2072You can use Pandoc to produce an HTML + javascript slide presentation
2073that can be viewed via a web browser. There are three ways to do this,
2074using [S5], [DZSlides], or [Slidy]. You can also produce a PDF slide
2075show using LaTeX [beamer].
2077Here's the markdown source for a simple slide show, `habits.txt`:
2079 % Habits
2080 % John Doe
2081 % March 22, 2005
2083 # In the morning
2085 ## Getting up
2087 - Turn off alarm
2088 - Get out of bed
2090 ## Breakfast
2092 - Eat eggs
2093 - Drink coffee
2095 # In the evening
2097 ## Dinner
2099 - Eat spaghetti
2100 - Drink wine
2102 ------------------
2104 ![picture of spaghetti](images/spaghetti.jpg)
2106 ## Going to sleep
2108 - Get in bed
2109 - Count sheep
2111To produce the slide show, simply type
2113 pandoc -t s5 -s habits.txt -o habits.html
2115for S5,
2117 pandoc -t slidy -s habits.txt -o habits.html
2119for Slidy,
2121 pandoc -t dzslides -s habits.txt -o habits.html
2123for DZSlides, or
2125 pandoc -t beamer habits.txt -o habits.pdf
2127for beamer.
2129With all HTML slide formats, the `--self-contained` option can be used to
2130produce a single file that contains all of the data necessary to display the
2131slide show, including linked scripts, stylesheets, images, and videos.
2133Structuring the slide show
2134--------------------------
2136By default, the *slide level* is the highest header level in
2137the hierarchy that is followed immediately by content, and not another
2138header, somewhere in the document. In the example above, level 1 headers
2139are always followed by level 2 headers, which are followed by content,
2140so 2 is the slide level. This default can be overridden using
2141the `--slide-level` option.
2143The document is carved up into slides according to the following
2144rules:
2146 * A horizontal rule always starts a new slide.
2148 * A header at the slide level always starts a new slide.
2150 * Headers *below* the slide level in the hierarchy create
2151 headers *within* a slide.
2153 * Headers *above* the slide level in the hierarchy create
2154 "title slides," which just contain the section title
2155 and help to break the slide show into sections.
2157 * A title page is constructed automatically from the document's title
2158 block, if present. (In the case of beamer, this can be disabled
2159 by commenting out some lines in the default template.)
2161These rules are designed to support many different styles of slide show. If
2162you don't care about structuring your slides into sections and subsections,
2163you can just use level 1 headers for all each slide. (In that case, level 1
2164will be the slide level.) But you can also structure the slide show into
2165sections, as in the example above.
2167For Slidy and S5, the file produced by pandoc with the `-s/--standalone`
2168option embeds a link to javascripts and CSS files, which are assumed to
2169be available at the relative path `s5/default` (for S5) or at the Slidy
2170website at `w3.org` (for Slidy). (These paths can be changed by setting
2171the `slidy-url` or `s5-url` variables; see `--variable`, above.) For DZSlides,
2172the (relatively short) javascript and css are included in the file by default.
2174Incremental lists
2175-----------------
2177By default, these writers produces lists that display "all at once."
2178If you want your lists to display incrementally (one item at a time),
2179use the `-i` option. If you want a particular list to depart from the
2180default (that is, to display incrementally without the `-i` option and
2181all at once with the `-i` option), put it in a block quote:
2183 > - Eat spaghetti
2184 > - Drink wine
2186In this way incremental and nonincremental lists can be mixed in
2187a single document.
2189Styling the slides
2190------------------
2192You can change the style of HTML slides by putting customized CSS files
2193in `$DATADIR/s5/default` (for S5) or `$DATADIR/slidy` (for Slidy),
2194where `$DATADIR` is the user data directory (see `--data-dir`, above).
2195The originals may be found in pandoc's system data directory (generally
2196`$CABALDIR/pandoc-VERSION/s5/default`). Pandoc will look there for any
2197files it does not find in the user data directory.
2199For dzslides, the CSS is included in the HTML file itself, and may
2200be modified there.
2202To style beamer slides, you can specify a beamer "theme" or "colortheme"
2203using the `-V` option:
2205 pandoc -t beamer habits.txt -V theme:Warsaw -o habits.pdf
2207Literate Haskell support
2208========================
2210If you append `+lhs` to an appropriate input or output format (`markdown`,
2211`rst`, or `latex` for input or output; `beamer`, `html` or `html5` for
2212output only), pandoc will treat the document as literate Haskell source.
2213This means that
2215 - In markdown input, "bird track" sections will be parsed as Haskell
2216 code rather than block quotations. Text between `\begin{code}`
2217 and `\end{code}` will also be treated as Haskell code.
2219 - In markdown output, code blocks with classes `haskell` and `literate`
2220 will be rendered using bird tracks, and block quotations will be
2221 indented one space, so they will not be treated as Haskell code.
2222 In addition, headers will be rendered setext-style (with underlines)
2223 rather than atx-style (with '#' characters). (This is because ghc
2224 treats '#' characters in column 1 as introducing line numbers.)
2226 - In restructured text input, "bird track" sections will be parsed
2227 as Haskell code.
2229 - In restructured text output, code blocks with class `haskell` will
2230 be rendered using bird tracks.
2232 - In LaTeX input, text in `code` environments will be parsed as
2233 Haskell code.
2235 - In LaTeX output, code blocks with class `haskell` will be rendered
2236 inside `code` environments.
2238 - In HTML output, code blocks with class `haskell` will be rendered
2239 with class `literatehaskell` and bird tracks.
2241Examples:
2243 pandoc -f markdown+lhs -t html
2245reads literate Haskell source formatted with markdown conventions and writes
2246ordinary HTML (without bird tracks).
2248 pandoc -f markdown+lhs -t html+lhs
2250writes HTML with the Haskell code in bird tracks, so it can be copied
2251and pasted as literate Haskell source.
2253Authors
2254=======
2256© 2006-2011 John MacFarlane (jgm at berkeley dot edu). Released under the
2257[GPL], version 2 or greater. This software carries no warranty of
2258any kind. (See COPYRIGHT for full copyright and warranty notices.)
2259Other contributors include Recai Oktaş, Paulo Tanimoto, Peter Wang,
2260Andrea Rossato, Eric Kow, infinity0x, Luke Plant, shreevatsa.public,
2261Puneeth Chaganti, Paul Rivier, rodja.trappe, Bradley Kuhn, thsutton,
2262Nathan Gass, Jonathan Daugherty, Jérémy Bobbio, Justin Bogner, qerub,
2263Christopher Sawicki, Kelsey Hightower, Masayoshi Takahashi, Antoine
2264Latter, Ralf Stephan, Eric Seidel, B. Scott Michel.
2266[markdown]: http://daringfireball.net/projects/markdown/
2267[reStructuredText]: http://docutils.sourceforge.net/docs/ref/rst/introduction.html
2268[S5]: http://meyerweb.com/eric/tools/s5/
2269[Slidy]: http://www.w3.org/Talks/Tools/Slidy/
2270[HTML]: http://www.w3.org/TR/html40/
2271[HTML 5]: http://www.w3.org/TR/html5/
2272[XHTML]: http://www.w3.org/TR/xhtml1/
2273[LaTeX]: http://www.latex-project.org/
2274[beamer]: http://www.tex.ac.uk/CTAN/macros/latex/contrib/beamer
2275[ConTeXt]: http://www.pragma-ade.nl/
2276[RTF]: http://en.wikipedia.org/wiki/Rich_Text_Format
2277[DocBook XML]: http://www.docbook.org/
2278[OpenDocument XML]: http://opendocument.xml.org/
2279[ODT]: http://en.wikipedia.org/wiki/OpenDocument
2280[Textile]: http://redcloth.org/textile
2281[MediaWiki markup]: http://www.mediawiki.org/wiki/Help:Formatting
2282[groff man]: http://developer.apple.com/DOCUMENTATION/Darwin/Reference/ManPages/man7/groff_man.7.html
2283[Haskell]: http://www.haskell.org/
2284[GNU Texinfo]: http://www.gnu.org/software/texinfo/
2285[Emacs Org-Mode]: http://orgmode.org
2286[AsciiDoc]: http://www.methods.co.nz/asciidoc/
2287[EPUB]: http://www.idpf.org/
2288[GPL]: http://www.gnu.org/copyleft/gpl.html "GNU General Public License"
2289[DZSlides]: http://paulrouget.com/dzslides/
2290[ISO 8601 format]: http://www.w3.org/TR/NOTE-datetime
2291[Word docx]: http://www.microsoft.com/interop/openup/openxml/default.aspx
2292[PDF]: http://www.adobe.com/pdf/