8pandoc [*options*] [*input-file*]...
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], [FictionBook2],
20[Textile], [groff man] pages, [Emacs Org-Mode], [AsciiDoc], and [Slidy],
21[Slideous], [DZSlides], or [S5] HTML slide shows. It can also produce
22[PDF] output on systems where LaTeX is installed.
24Pandoc's enhanced version of markdown includes syntax for footnotes,
25tables, flexible ordered lists, definition lists, fenced 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
30`markdown_strict` input or output format.)
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.
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
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
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
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).
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
121invoked with `-f markdown_strict --email-obfuscation=references`,
122and all command-line options will be treated as regular arguments.
123However, this approach does not work under Cygwin, due to problems with
124its simulation of symbolic links.
126[Cygwin]: http://www.cygwin.com/
127[`iconv`]: http://www.gnu.org/software/libiconv/
128[CTAN]: http://www.ctan.org "Comprehensive TeX Archive Network"
129[TeX Live]: http://www.tug.org/texlive/
130[MacTeX]: http://www.tug.org/mactex/
138`-f` *FORMAT*, `-r` *FORMAT*, `--from=`*FORMAT*, `--read=`*FORMAT*
139: Specify input format. *FORMAT* can be `native` (native Haskell),
140 `json` (JSON version of native AST), `markdown` (pandoc's
141 extended markdown), `markdown_strict` (original unextended markdown),
142 `textile` (Textile), `rst` (reStructuredText), `html` (HTML),
143 `docbook` (DocBook XML), or `latex` (LaTeX). If `+lhs` is
144 appended to `markdown`, `rst`, `latex`, the input will be
145 treated as literate Haskell source: see [Literate Haskell
146 support](#literate-haskell-support), below. Markdown syntax
147 extensions can be individually enabled or disabled by appending
148 `+EXTENSION` or `-EXTENSION` to the format name. So, for example,
149 `markdown_strict+footnotes+definition_lists` is strict markdown
150 with footnotes and definition lists enabled, and
151 `markdown-pipe_tables+hard_line_breaks` is pandoc's markdown
152 without pipe tables and with hard line breaks. See
153 [Pandoc's markdown](#pandocs-markdown), below, for a list of
154 extensions and their names.
156`-t` *FORMAT*, `-w` *FORMAT*, `--to=`*FORMAT*, `--write=`*FORMAT*
157: Specify output format. *FORMAT* can be `native` (native Haskell),
158 `json` (JSON version of native AST), `plain` (plain text),
159 `markdown` (pandoc's extended markdown), `markdown_strict` (original
160 unextended markdown), `rst` (reStructuredText), `html` (XHTML
161 1), `html5` (HTML 5), `latex` (LaTeX), `beamer` (LaTeX beamer
162 slide show), `context` (ConTeXt), `man` (groff man), `mediawiki`
163 (MediaWiki markup), `textile` (Textile), `org` (Emacs Org-Mode),
164 `texinfo` (GNU Texinfo), `docbook` (DocBook XML), `opendocument`
165 (OpenDocument XML), `odt` (OpenOffice text document), `docx`
166 (Word docx), `epub` (EPUB book), `fb2` (FictionBook2 e-book),
167 `asciidoc` (AsciiDoc), `slidy` (Slidy HTML and javascript slide
168 show), `slideous` (Slideous HTML and javascript slide show),
169 `dzslides` (HTML5 + javascript slide show), `s5` (S5 HTML and
170 javascript slide show), or `rtf` (rich text format). Note that
171 `odt` and `epub` output will not be directed to *stdout*; an output
172 filename must be specified using the `-o/--output` option. If `+lhs`
173 is appended to `markdown`, `rst`, `latex`, `beamer`, `html`, or
174 `html5`, the output will be rendered as literate Haskell source:
175 see [Literate Haskell support](#literate-haskell-support), below.
176 Markdown syntax extensions can be individually enabled or disabled
177 by appending `+EXTENSION` or `-EXTENSION` to the format name, as
178 described above under `-f`.
180`-o` *FILE*, `--output=`*FILE*
181: Write output to *FILE* instead of *stdout*. If *FILE* is
182 `-`, output will go to *stdout*. (Exception: if the output
183 format is `odt`, `docx`, or `epub`, output to stdout is disabled.)
185`--data-dir=`*DIRECTORY*
186: Specify the user data directory to search for pandoc data files.
187 If this option is not specified, the default user data directory
194 C:\Documents And Settings\USERNAME\Application Data\pandoc
196 in Windows. A `reference.odt`, `reference.docx`, `default.csl`,
197 `epub.css`, `templates`, `slidy`, `slideous`, or `s5` directory
198 placed in this directory will override pandoc's normal defaults.
210: Parse untranslatable HTML codes and LaTeX environments as raw HTML
211 or LaTeX, instead of ignoring them. Affects only HTML and LaTeX
212 input. Raw HTML can be printed in markdown, reStructuredText, HTML,
214 DZSlides, and S5 output; raw LaTeX can be printed in markdown,
215 reStructuredText, LaTeX, and ConTeXt output. The default is for the
216 readers to omit untranslatable HTML codes and LaTeX environments.
217 (The LaTeX reader does pass through untranslatable LaTeX *commands*,
218 even if `-R` is not specified.)
221: Produce typographically correct output, converting straight quotes
222 to curly quotes, `---` to em-dashes, `--` to en-dashes, and
223 `...` to ellipses. Nonbreaking spaces are inserted after certain
224 abbreviations, such as "Mr." (Note: This option is significant only when
225 the input format is `markdown`, `markdown_strict`, or `textile`. It
226 is selected automatically when the input format is `textile` or the
227 output format is `latex` or `context`, unless `--no-tex-ligatures`
231: Selects the pandoc <= 1.8.2.1 behavior for parsing smart dashes: `-` before
232 a numeral is an en-dash, and `--` is an em-dash. This option is selected
233 automatically for `textile` input.
235`--base-header-level=`*NUMBER*
236: Specify the base level for headers (defaults to 1).
238`--indented-code-classes=`*CLASSES*
239: Specify classes to use for indented code blocks--for example,
240 `perl,numberLines` or `haskell`. Multiple classes may be separated
244: Normalize the document after reading: merge adjacent
245 `Str` or `Emph` elements, for example, and remove repeated `Space`s.
247`-p`, `--preserve-tabs`
248: Preserve tabs instead of converting them to spaces (the default).
249 Note that this will only affect tabs in literal code spans and code
250 blocks; tabs in regular text will be treated as spaces.
253: Specify the number of spaces per tab (default is 4).
255General writer options
256----------------------
259: Produce output with an appropriate header and footer (e.g. a
260 standalone HTML, LaTeX, or RTF file, not a fragment). This option
261 is set automatically for `pdf`, `epub`, `fb2`, `docx`, and `odt`
265: Use *FILE* as a custom template for the generated document. Implies
266 `--standalone`. See [Templates](#templates) below for a description
267 of template syntax. If no extension is specified, an extension
268 corresponding to the writer will be added, so that `--template=special`
269 looks for `special.html` for HTML output. If the template is not
270 found, pandoc will search for it in the user data directory
271 (see `--data-dir`). If this option is not used, a default
272 template appropriate for the output format will be used (see
273 `-D/--print-default-template`).
275`-V` *KEY[=VAL]*, `--variable=`*KEY[:VAL]*
276: Set the template variable *KEY* to the value *VAL* when rendering the
277 document in standalone mode. This is generally only useful when the
278 `--template` option is used to specify a custom template, since
279 pandoc automatically sets the variables used in the default
280 templates. If no *VAL* is specified, the key will be given the
283`-D` *FORMAT*, `--print-default-template=`*FORMAT*
284: Print the default template for an output *FORMAT*. (See `-t`
285 for a list of possible *FORMAT*s.)
288: Disable text wrapping in output. By default, text is wrapped
289 appropriately for the output format.
292: Specify length of lines in characters (for text wrapping).
294`--toc`, `--table-of-contents`
295: Include an automatically generated table of contents (or, in
296 the case of `latex`, `context`, and `rst`, an instruction to create
297 one) in the output document. This option has no effect on `man`,
298 `docbook`, `slidy`, `slideous`, or `s5` output.
301: Disables syntax highlighting for code blocks and inlines, even when
302 a language attribute is given.
304`--highlight-style`=*STYLE*
305: Specifies the coloring style to be used in highlighted source code.
306 Options are `pygments` (the default), `kate`, `monochrome`,
307 `espresso`, `zenburn`, `haddock`, and `tango`.
309`-H` *FILE*, `--include-in-header=`*FILE*
310: Include contents of *FILE*, verbatim, at the end of the header.
311 This can be used, for example, to include special
312 CSS or javascript in HTML documents. This option can be used
313 repeatedly to include multiple files in the header. They will be
314 included in the order specified. Implies `--standalone`.
316`-B` *FILE*, `--include-before-body=`*FILE*
317: Include contents of *FILE*, verbatim, at the beginning of the
318 document body (e.g. after the `<body>` tag in HTML, or the
319 `\begin{document}` command in LaTeX). This can be used to include
320 navigation bars or banners in HTML documents. This option can be
321 used repeatedly to include multiple files. They will be included in
322 the order specified. Implies `--standalone`.
324`-A` *FILE*, `--include-after-body=`*FILE*
325: Include contents of *FILE*, verbatim, at the end of the document
326 body (before the `</body>` tag in HTML, or the
327 `\end{document}` command in LaTeX). This option can be be used
328 repeatedly to include multiple files. They will be included in the
329 order specified. Implies `--standalone`.
331Options affecting specific writers
332----------------------------------
335: Produce a standalone HTML file with no external dependencies, using
336 `data:` URIs to incorporate the contents of linked scripts, stylesheets,
337 images, and videos. The resulting file should be "self-contained,"
338 in the sense that it needs no external files and no net access to be
339 displayed properly by a browser. This option works only with HTML output
340 formats, including `html`, `html5`, `html+lhs`, `html5+lhs`, `s5`,
342 and `dzslides`. Scripts, images, and stylesheets at absolute URLs
343 will be downloaded; those at relative URLs will be sought first relative
344 to the working directory, then relative to the user data directory (see
345 `--data-dir`), and finally relative to pandoc's default data directory.
348: Deprecated synonym for `--self-contained`.
351: Produce HTML5 instead of HTML4. This option has no effect for writers
352 other than `html`. (*Deprecated:* Use the `html5` output format instead.)
355: Use only ascii characters in output. Currently supported only
356 for HTML output (which uses numerical entities instead of
357 UTF-8 when this option is selected).
360: Use reference-style links, rather than inline links, in writing markdown
361 or reStructuredText. By default inline links are used.
364: Use ATX style headers in markdown output. The default is to use
365 setext-style headers for levels 1-2, and then ATX headers.
368: Treat top-level headers as chapters in LaTeX, ConTeXt, and DocBook
369 output. When the LaTeX template uses the report, book, or
370 memoir class, this option is implied. If `--beamer` is used,
371 top-level headers will become `\part{..}`.
373`-N`, `--number-sections`
374: Number section headings in LaTeX, ConTeXt, or HTML output.
375 By default, sections are not numbered.
378: Do not convert quotation marks, apostrophes, and dashes to
379 the TeX ligatures when writing LaTeX or ConTeXt. Instead, just
380 use literal unicode characters. This is needed for using advanced
381 OpenType features with XeLaTeX and LuaLaTeX. Note: normally
382 `--smart` is selected automatically for LaTeX and ConTeXt
383 output, but it must be specified explicitly if `--no-tex-ligatures`
384 is selected. If you use literal curly quotes, dashes, and ellipses
385 in your source, then you may want to use `--no-tex-ligatures`
389: Use listings package for LaTeX code blocks
392: Make list items in slide shows display incrementally (one by one).
393 The default is for lists to be displayed all at once.
395`--slide-level`=*NUMBER*
396: Specifies that headers with the specified level create
397 slides (for `beamer`, `s5`, `slidy`, `slideous`, `dzslides`). Headers
398 above this level in the hierarchy are used to divide the
399 slide show into sections; headers below this level create
400 subheads within a slide. The default is to set the slide level
401 based on the contents of the document; see
402 [Structuring the slide show](#structuring-the-slide-show), below.
405: Wrap sections in `<div>` tags (or `<section>` tags in HTML5),
406 and attach identifiers to the enclosing `<div>` (or `<section>`)
407 rather than the header itself.
408 See [Section identifiers](#header-identifiers-in-html-latex-and-context), below.
410`--email-obfuscation=`*none|javascript|references*
411: Specify a method for obfuscating `mailto:` links in HTML documents.
412 *none* leaves `mailto:` links as they are. *javascript* obfuscates
413 them using javascript. *references* obfuscates them by printing their
414 letters as decimal or hexadecimal character references.
416`--id-prefix`=*STRING*
417: Specify a prefix to be added to all automatically generated identifiers
418 in HTML and DocBook output. This is useful for preventing duplicate
419 identifiers when generating fragments to be included in other pages.
421`-T` *STRING*, `--title-prefix=`*STRING*
422: Specify *STRING* as a prefix at the beginning of the title
423 that appears in the HTML header (but not in the title as it
424 appears at the beginning of the HTML body). Implies
427`-c` *URL*, `--css=`*URL*
428: Link to a CSS style sheet. This option can be be used repeatedly to
429 include multiple files. They will be included in the order specified.
431`--reference-odt=`*FILE*
432: Use the specified file as a style reference in producing an ODT.
433 For best results, the reference ODT should be a modified version
434 of an ODT produced using pandoc. The contents of the reference ODT
435 are ignored, but its stylesheets are used in the new ODT. If no
436 reference ODT is specified on the command line, pandoc will look
437 for a file `reference.odt` in the user data directory (see
438 `--data-dir`). If this is not found either, sensible defaults will be
441`--reference-docx=`*FILE*
442: Use the specified file as a style reference in producing a docx file.
443 For best results, the reference docx should be a modified version
444 of a docx file produced using pandoc. The contents of the reference docx
445 are ignored, but its stylesheets are used in the new docx. If no
446 reference docx is specified on the command line, pandoc will look
447 for a file `reference.docx` in the user data directory (see
448 `--data-dir`). If this is not found either, sensible defaults will be
449 used. The following styles are used by pandoc: [paragraph]
450 Normal, Title, Authors, Date, Heading 1, Heading 2, Heading 3,
451 Heading 4, Heading 5, Block Quote, Definition Term, Definition,
452 Body Text, Table Caption, Picture Caption; [character] Default
453 Paragraph Font, Body Text Char, Verbatim Char, Footnote Reference,
456`--epub-stylesheet=`*FILE*
457: Use the specified CSS file to style the EPUB. If no stylesheet
458 is specified, pandoc will look for a file `epub.css` in the
459 user data directory (see `--data-dir`). If it is not
460 found there, sensible defaults will be used.
462`--epub-cover-image=`*FILE*
463: Use the specified image as the EPUB cover. It is recommended
464 that the image be less than 1000px in width and height.
466`--epub-metadata=`*FILE*
467: Look in the specified XML file for metadata for the EPUB.
468 The file should contain a series of Dublin Core elements,
469 as documented at <http://dublincore.org/documents/dces/>.
472 <dc:rights>Creative Commons</dc:rights>
473 <dc:language>es-AR</dc:language>
475 By default, pandoc will include the following metadata elements:
476 `<dc:title>` (from the document title), `<dc:creator>` (from the
477 document authors), `<dc:date>` (from the document date, which should
478 be in [ISO 8601 format]), `<dc:language>` (from the `lang`
479 variable, or, if is not set, the locale), and `<dc:identifier
480 id="BookId">` (a randomly generated UUID). Any of these may be
481 overridden by elements in the metadata file.
483`--epub-embed-font=`*FILE*
484: Embed the specified font in the EPUB. This option can be repeated
485 to embed multiple fonts. To use embedded fonts, you
486 will need to add declarations like the following to your CSS (see
487 `--epub-stylesheet`):
490 font-family: DejaVuSans;
493 src:url("DejaVuSans-Regular.ttf");
496 font-family: DejaVuSans;
499 src:url("DejaVuSans-Bold.ttf");
502 font-family: DejaVuSans;
505 src:url("DejaVuSans-Oblique.ttf");
508 font-family: DejaVuSans;
511 src:url("DejaVuSans-BoldOblique.ttf");
513 body { font-family: "DejaVuSans"; }
515`--latex-engine=`*pdflatex|lualatex|xelatex*
516: Use the specified LaTeX engine when producing PDF output.
517 The default is `pdflatex`. If the engine is not in your PATH,
518 the full path of the engine may be specified here.
523`--bibliography=`*FILE*
524: Specify bibliography database to be used in resolving
525 citations. The database type will be determined from the
526 extension of *FILE*, which may be `.mods` (MODS format),
527 `.bib` (BibTeX/BibLaTeX format),
528 `.ris` (RIS format), `.enl` (EndNote format),
529 `.xml` (EndNote XML format), `.wos` (ISI format),
530 `.medline` (MEDLINE format), `.copac` (Copac format),
531 or `.json` (citeproc JSON). If you want to use multiple
532 bibliographies, just use this option repeatedly.
535: Specify [CSL] style to be used in formatting citations and
536 the bibliography. If *FILE* is not found, pandoc will look
543 C:\Documents And Settings\USERNAME\Application Data\csl
545 in Windows. If the `--csl` option is not specified, pandoc
546 will use a default style: either `default.csl` in the
547 user data directory (see `--data-dir`), or, if that is
548 not present, the Chicago author-date style.
550`--citation-abbreviations=`*FILE*
551: Specify a file containing abbreviations for journal titles and
552 other bibliographic fields (indicated by setting `form="short"`
553 in the CSL node for the field). The format is described at
554 <http://citationstylist.org/2011/10/19/abbreviations-for-zotero-test-release/>.
555 Here is a short example:
559 "Lloyd's Law Reports": "Lloyd's Rep",
560 "Estates Gazette": "EG",
561 "Scots Law Times": "SLT"
567: Use natbib for citations in LaTeX output.
570: Use biblatex for citations in LaTeX output.
572Math rendering in HTML
573----------------------
575`-m` [*URL*], `--latexmathml`[=*URL*]
576: Use the [LaTeXMathML] script to display embedded TeX math in HTML output.
577 To insert a link to a local copy of the `LaTeXMathML.js` script,
578 provide a *URL*. If no *URL* is provided, the contents of the
579 script will be inserted directly into the HTML header, preserving
580 portability at the price of efficiency. If you plan to use math on
581 several pages, it is much better to link to a copy of the script,
585: Convert TeX math to MathML (in `docbook` as well as `html` and `html5`).
586 In standalone `html` output, a small javascript (or a link to such a
587 script if a *URL* is supplied) will be inserted that allows the MathML to
588 be viewed on some browsers.
591: Use [jsMath] to display embedded TeX math in HTML output.
592 The *URL* should point to the jsMath load script (e.g.
593 `jsMath/easy/load.js`); if provided, it will be linked to in
594 the header of standalone HTML documents. If a *URL* is not provided,
595 no link to the jsMath load script will be inserted; it is then
596 up to the author to provide such a link in the HTML template.
599: Use [MathJax] to display embedded TeX math in HTML output.
600 The *URL* should point to the `MathJax.js` load script.
601 If a *URL* is not provided, a link to the MathJax CDN will
605: Enclose TeX math in `<eq>` tags in HTML output. These can then
606 be processed by [gladTeX] to produce links to images of the typeset
610: Render TeX math using the [mimeTeX] CGI script. If *URL* is not
611 specified, it is assumed that the script is at `/cgi-bin/mimetex.cgi`.
614: Render TeX formulas using an external script that converts TeX
615 formulas to images. The formula will be concatenated with the URL
616 provided. If *URL* is not specified, the Google Chart API will be used.
618Options for wrapper scripts
619---------------------------
622: Print information about command-line arguments to *stdout*, then exit.
623 This option is intended primarily for use in wrapper scripts.
624 The first line of output contains the name of the output file specified
625 with the `-o` option, or `-` (for *stdout*) if no output file was
626 specified. The remaining lines contain the command-line arguments,
627 one per line, in the order they appear. These do not include regular
628 Pandoc options and their arguments, but do include any options appearing
629 after a `--` separator at the end of the line.
632: Ignore command-line arguments (for use in wrapper scripts).
633 Regular Pandoc options are not ignored. Thus, for example,
635 pandoc --ignore-args -o foo.html -s foo.txt -- -e latin1
639 pandoc -o foo.html -s
641[LaTeXMathML]: http://math.etsu.edu/LaTeXMathML/
642[jsMath]: http://www.math.union.edu/~dpvc/jsmath/
643[MathJax]: http://www.mathjax.org/
644[gladTeX]: http://ans.hsh.no/home/mgg/gladtex/
645[mimeTeX]: http://www.forkosh.com/mimetex.html
646[CSL]: http://CitationStyles.org
651When the `-s/--standalone` option is used, pandoc uses a template to
652add header and footer material that is needed for a self-standing
653document. To see the default template that is used, just type
657where `FORMAT` is the name of the output format. A custom template
658can be specified using the `--template` option. You can also override
659the system default templates for a given output format `FORMAT`
660by putting a file `templates/default.FORMAT` in the user data
661directory (see `--data-dir`, above). *Exceptions:* For `odt` output,
662customize the `default.opendocument` template. For `pdf` output,
663customize the `default.latex` template. For `epub` output, customize
664the `epub-page.html`, `epub-coverimage.html`, and `epub-titlepage.html`
667Templates may contain *variables*. Variable names are sequences of
668alphanumerics, `-`, and `_`, starting with a letter. A variable name
669surrounded by `$` signs will be replaced by its value. For example,
670the string `$title$` in
672 <title>$title$</title>
674will be replaced by the document title.
676To write a literal `$` in a template, use `$$`.
678Some variables are set automatically by pandoc. These vary somewhat
679depending on the output format, but include:
682: contents specified by `-H/--include-in-header` (may have multiple
685: non-null value if `--toc/--table-of-contents` was specified
687: contents specified by `-B/--include-before-body` (may have
690: contents specified by `-A/--include-after-body` (may have
695: title of document, as specified in title block
697: author of document, as specified in title block (may have
700: date of document, as specified in title block
702: language code for HTML or LaTeX documents
704: base URL for Slidy documents (defaults to
705 `http://www.w3.org/Talks/Tools/Slidy2`)
707: base URL for Slideous documents (defaults to `default`)
709: base URL for S5 documents (defaults to `ui/default`)
711: font size (10pt, 11pt, 12pt) for LaTeX documents
713: document class for LaTeX documents
715: options for LaTeX `geometry` class, e.g. `margin=1in`;
716 may be repeated for multiple options
717`mainfont`, `sansfont`, `monofont`, `mathfont`
718: fonts for LaTeX documents (works only with xelatex
721: theme for LaTeX beamer documents
723: colortheme for LaTeX beamer documents
725: color for internal links in LaTeX documents (`red`, `green`,
726 `magenta`, `cyan`, `blue`, `black`)
728: color for external links in LaTeX documents
730: causes links to be printed as footnotes in LaTeX documents
732Variables may be set at the command line using the `-V/--variable`
733option. This allows users to include custom variables in their
736Templates may contain conditionals. The syntax is as follows:
744This will include `X` in the template if `variable` has a non-null
745value; otherwise it will include `Y`. `X` and `Y` are placeholders for
746any valid template text, and may include interpolated variables or other
747conditionals. The `$else$` section may be omitted.
749When variables can have multiple values (for example, `author` in
750a multi-author document), you can use the `$for$` keyword:
753 <meta name="author" content="$author$" />
756You can optionally specify a separator to be used between
759 $for(author)$$author$$sep$, $endfor$
761If you use custom templates, you may need to revise them as pandoc
762changes. We recommend tracking the changes in the default templates,
763and modifying your custom templates accordingly. An easy way to do this
764is to fork the pandoc-templates repository
765(<http://github.com/jgm/pandoc-templates>) and merge in changes after each
771Pandoc understands an extended and slightly revised version of
772John Gruber's [markdown] syntax. This document explains the syntax,
773noting differences from standard markdown. Except where noted, these
774differences can be suppressed by using the `markdown_strict` format instead
775of `markdown`. An extensions can be enabled by adding `+EXTENSION`
776to the format name and disabled by adding `-EXTENSION`. For example,
777`markdown_strict+footnotes` is strict markdown with footnotes
778enabled, while `markdown-footnotes-pipe_tables` is pandoc's
779markdown without footnotes or pipe tables.
784Markdown is designed to be easy to write, and, even more importantly,
787> A Markdown-formatted document should be publishable as-is, as plain
788> text, without looking like it's been marked up with tags or formatting
790> -- [John Gruber](http://daringfireball.net/projects/markdown/syntax#philosophy)
792This principle has guided pandoc's decisions in finding syntax for
793tables, footnotes, and other extensions.
795There is, however, one respect in which pandoc's aims are different
796from the original aims of markdown. Whereas markdown was originally
797designed with HTML generation in mind, pandoc is designed for multiple
798output formats. Thus, while pandoc allows the embedding of raw HTML,
799it discourages it, and provides other, non-HTMLish ways of representing
800important document elements like definition lists, tables, mathematics, and
806A paragraph is one or more lines of text followed by one or more blank line.
807Newlines are treated as spaces, so you can reflow your paragraphs as you like.
808If you need a hard line break, put two or more spaces at the end of a line.
810**Extension: `escaped_line_breaks`**
812A backslash followed by a newline is also a hard line break.
817There are two kinds of headers, Setext and atx.
819### Setext-style headers ###
821A setext-style header is a line of text "underlined" with a row of `=` signs
822(for a level one header) of `-` signs (for a level two header):
830The header text can contain inline formatting, such as emphasis (see
831[Inline formatting](#inline-formatting), below).
834### Atx-style headers ###
836An Atx-style header consists of one to six `#` signs and a line of
837text, optionally followed by any number of `#` signs. The number of
838`#` signs at the beginning of the line is the header level:
840 ## A level-two header
842 ### A level-three header ###
844As with setext-style headers, the header text can contain formatting:
846 # A level-one header with a [link](/url) and *emphasis*
848**Extension: `blank_before_header`**
850Standard markdown syntax does not require a blank line before a header.
851Pandoc does require this (except, of course, at the beginning of the
852document). The reason for the requirement is that it is all too easy for a
853`#` to end up at the beginning of a line by accident (perhaps through line
854wrapping). Consider, for example:
856 I like several of their flavors of ice cream:
857 #22, for example, and #5.
860### Header identifiers in HTML, LaTeX, and ConTeXt ###
864Each header element in pandoc's HTML and ConTeXt output is given a
865unique identifier. This identifier is based on the text of the header.
866To derive the identifier from the header text,
868 - Remove all formatting, links, etc.
869 - Remove all punctuation, except underscores, hyphens, and periods.
870 - Replace all spaces and newlines with hyphens.
871 - Convert all alphabetic characters to lowercase.
872 - Remove everything up to the first letter (identifiers may
873 not begin with a number or punctuation mark).
874 - If nothing is left after this, use the identifier `section`.
879 ------------------------------- ----------------------------
880 Header identifiers in HTML `header-identifiers-in-html`
881 *Dogs*?--in *my* house? `dogs--in-my-house`
882 [HTML], [S5], or [RTF]? `html-s5-or-rtf`
883 3. Applications `applications`
886These rules should, in most cases, allow one to determine the identifier
887from the header text. The exception is when several headers have the
888same text; in this case, the first will get an identifier as described
889above; the second will get the same identifier with `-1` appended; the
890third with `-2`; and so on.
892These identifiers are used to provide link targets in the table of
893contents generated by the `--toc|--table-of-contents` option. They
894also make it easy to provide links from one section of a document to
895another. A link to this section, for example, might look like this:
898 [header identifiers](#header-identifiers-in-html).
900Note, however, that this method of providing links to sections works
901only in HTML, LaTeX, and ConTeXt formats.
903If the `--section-divs` option is specified, then each section will
904be wrapped in a `div` (or a `section`, if `--html5` was specified),
905and the identifier will be attached to the enclosing `<div>`
906(or `<section>`) tag rather than the header itself. This allows entire
907sections to be manipulated using javascript or treated differently in
914Markdown uses email conventions for quoting blocks of text.
915A block quotation is one or more paragraphs or other block elements
916(such as lists or headers), with each line preceded by a `>` character
917and a space. (The `>` need not start at the left margin, but it should
918not be indented more than three spaces.)
920 > This is a block quote. This
921 > paragraph has two lines.
923 > 1. This is a list inside a block quote.
926A "lazy" form, which requires the `>` character only on the first
927line of each block, is also allowed:
929 > This is a block quote. This
930 paragraph has two lines.
932 > 1. This is a list inside a block quote.
935Among the block elements that can be contained in a block quote are
936other block quotes. That is, block quotes can be nested:
938 > This is a block quote.
940 > > A block quote within a block quote.
942**Extension: `blank_line_before_blockquote`**
944Standard markdown syntax does not require a blank line before a block
945quote. Pandoc does require this (except, of course, at the beginning of the
946document). The reason for the requirement is that it is all too easy for a
947`>` to end up at the beginning of a line by accident (perhaps through line
948wrapping). So, unless the `markdown_strict` format is used, the following does
949not produce a nested block quote in pandoc:
951 > This is a block quote.
955Verbatim (code) blocks
956----------------------
958### Indented code blocks ###
960A block of text indented four spaces (or one tab) is treated as verbatim
961text: that is, special characters do not trigger special formatting,
962and all spaces and line breaks are preserved. For example,
965 moveShip(5 * gravity, DOWN);
968The initial (four space or one tab) indentation is not considered part
969of the verbatim text, and is removed in the output.
971Note: blank lines in the verbatim text need not begin with four spaces.
974### Fenced code blocks ###
976**Extension: `fenced_code_blocks`**
978In addition to standard indented code blocks, Pandoc supports
979*fenced* code blocks. These begin with a row of three or more
980tildes (`~`) or backticks (`` ` ``) and end with a row of tildes or
981backticks that must be at least as long as the starting row. Everything
982between these lines is treated as code. No indentation is necessary:
986 moveShip(5 * gravity, DOWN);
990Like regular code blocks, fenced code blocks must be separated
991from surrounding text by blank lines.
993If the code itself contains a row of tildes or backticks, just use a longer
994row of tildes or backticks at the start and end:
998 code including tildes
1002Optionally, you may attach attributes to the code block using
1005 ~~~~ {#mycode .haskell .numberLines startFrom="100"}
1007 qsort (x:xs) = qsort (filter (< x) xs) ++ [x] ++
1008 qsort (filter (>= x) xs)
1009 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1011Here `mycode` is an identifier, `haskell` and `numberLines` are classes, and
1012`startFrom` is an attribute with value `100`. Some output formats can use this
1013information to do syntax highlighting. Currently, the only output formats
1014that uses this information are HTML and LaTeX. If highlighting is supported
1015for your output format and language, then the code block above will appear
1016highlighted, with numbered lines. (To see which languages are supported, do
1017`pandoc --version`.) Otherwise, the code block above will appear as follows:
1019 <pre id="mycode" class="haskell numberLines" startFrom="100">
1025A shortcut form can also be used for specifying the language of
1032This is equivalent to:
1038To prevent all highlighting, use the `--no-highlight` flag.
1039To set the highlighting style, use `--highlight-style`.
1046A bullet list is a list of bulleted list items. A bulleted list
1047item begins with a bullet (`*`, `+`, or `-`). Here is a simple
1054This will produce a "compact" list. If you want a "loose" list, in which
1055each item is formatted as a paragraph, put spaces between the items:
1063The bullets need not be flush with the left margin; they may be
1064indented one, two, or three spaces. The bullet must be followed
1067List items look best if subsequent lines are flush with the first
1068line (after the bullet):
1074But markdown also allows a "lazy" format:
1080### The four-space rule ###
1082A list item may contain multiple paragraphs and other block-level
1083content. However, subsequent paragraphs must be preceded by a blank line
1084and indented four spaces or a tab. The list will look better if the first
1085paragraph is aligned with the rest:
1091 * Second paragraph. With a code block, which must be indented
1096List items may include other lists. In this case the preceding blank
1097line is optional. The nested list must be indented four spaces or
1110As noted above, markdown allows you to write list items "lazily," instead of
1111indenting continuation lines. However, if there are multiple paragraphs or
1112other blocks in a list item, the first line of each must be indented.
1114 + A lazy, lazy, list
1117 + Another one; this looks
1120 Second paragraph of second
1123**Note:** Although the four-space rule for continuation paragraphs
1124comes from the official [markdown syntax guide], the reference implementation,
1125`Markdown.pl`, does not follow it. So pandoc will give different results than
1126`Markdown.pl` when authors have indented continuation paragraphs fewer than
1129The [markdown syntax guide] is not explicit whether the four-space
1130rule applies to *all* block-level content in a list item; it only
1131mentions paragraphs and code blocks. But it implies that the rule
1132applies to all block-level content (including nested lists), and
1133pandoc interprets it that way.
1135 [markdown syntax guide]:
1136 http://daringfireball.net/projects/markdown/syntax#list
1138### Ordered lists ###
1140Ordered lists work just like bulleted lists, except that the items
1141begin with enumerators rather than bullets.
1143In standard markdown, enumerators are decimal numbers followed
1144by a period and a space. The numbers themselves are ignored, so
1145there is no difference between this list:
1157**Extension: `fancy_lists`**
1159Unlike standard markdown, Pandoc allows ordered list items to be marked
1160with uppercase and lowercase letters and roman numerals, in addition to
1161arabic numerals. List markers may be enclosed in parentheses or followed by a
1162single right-parentheses or period. They must be separated from the
1163text that follows by at least one space, and, if the list marker is a
1164capital letter with a period, by at least two spaces.[^2]
1166[^2]: The point of this rule is to ensure that normal paragraphs
1167 starting with people's initials, like
1169 B. Russell was an English philosopher.
1171 do not get treated as list items.
1173 This rule will not prevent
1177 from being interpreted as a list item. In this case, a backslash
1182**Extension: `startnum`**
1184Pandoc also pays attention to the type of list marker used, and to the
1185starting number, and both of these are preserved where possible in the
1186output format. Thus, the following yields a list with numbers followed
1187by a single parenthesis, starting with 9, and a sublist with lowercase
1197Pandoc will start a new list each time a different type of list
1198marker is used. So, the following will create three lists:
1205If default list markers are desired, use `#.`:
1212### Definition lists ###
1214**Extension: `definition_lists`**
1216Pandoc supports definition lists, using a syntax inspired by
1217[PHP Markdown Extra] and [reStructuredText]:[^3]
1223 Term 2 with *inline markup*
1227 { some code, part of Definition 2 }
1229 Third paragraph of definition 2.
1231Each term must fit on one line, which may optionally be followed by
1232a blank line, and must be followed by one or more definitions.
1233A definition begins with a colon or tilde, which may be indented one
1234or two spaces. The body of the definition (including the first line,
1235aside from the colon or tilde) should be indented four spaces. A term may have
1236multiple definitions, and each definition may consist of one or more block
1237elements (paragraph, code block, list, etc.), each indented four spaces or one
1240If you leave space after the definition (as in the example above),
1241the blocks of the definitions will be considered paragraphs. In some
1242output formats, this will mean greater spacing between term/definition
1243pairs. For a compact definition list, do not leave space between the
1244definition and the next term:
1252[^3]: I have also been influenced by the suggestions of [David Wheeler](http://www.justatheory.com/computers/markup/modest-markdown-proposal.html).
1254[PHP Markdown Extra]: http://www.michelf.com/projects/php-markdown/extra/
1257### Numbered example lists ###
1259**Extension: `example_lists`**
1261The special list marker `@` can be used for sequentially numbered
1262examples. The first list item with a `@` marker will be numbered '1',
1263the next '2', and so on, throughout the document. The numbered examples
1264need not occur in a single list; each new list using `@` will take up
1265where the last stopped. So, for example:
1267 (@) My first example will be numbered (1).
1268 (@) My second example will be numbered (2).
1270 Explanation of examples.
1272 (@) My third example will be numbered (3).
1274Numbered examples can be labeled and referred to elsewhere in the
1277 (@good) This is a good example.
1279 As (@good) illustrates, ...
1281The label can be any string of alphanumeric characters, underscores,
1285### Compact and loose lists ###
1287Pandoc behaves differently from `Markdown.pl` on some "edge
1288cases" involving lists. Consider this source:
1298Pandoc transforms this into a "compact list" (with no `<p>` tags around
1299"First", "Second", or "Third"), while markdown puts `<p>` tags around
1300"Second" and "Third" (but not "First"), because of the blank space
1301around "Third". Pandoc follows a simple rule: if the text is followed by
1302a blank line, it is treated as a paragraph. Since "Second" is followed
1303by a list, and not a blank line, it isn't treated as a paragraph. The
1304fact that the list is followed by a blank line is irrelevant. (Note:
1305Pandoc works this way even when the `markdown_strict` format is specified. This
1306behavior is consistent with the official markdown syntax description,
1307even though it is different from that of `Markdown.pl`.)
1310### Ending a list ###
1312What if you want to put an indented code block after a list?
1319Trouble! Here pandoc (like other markdown implementations) will treat
1320`{ my code block }` as the second paragraph of item two, and not as
1323To "cut off" the list after item two, you can insert some non-indented
1324content, like an HTML comment, which won't produce visible output in
1330 <!-- end of list -->
1334You can use the same trick if you want two consecutive lists instead
1350A line containing a row of three or more `*`, `-`, or `_` characters
1351(optionally separated by spaces) produces a horizontal rule:
1361**Extension: `simple_tables`, `multiline_tables`, `grid_tables`,
1362`pipe_tables`, `table_captions`**
1364Four kinds of tables may be used. The first three kinds presuppose the use of
1365a fixed-width font, such as Courier. The fourth kind can be used with
1366proportionally spaced fonts, as it does not require lining up columns.
1370Simple tables look like this:
1372 Right Left Center Default
1373 ------- ------ ---------- -------
1378 Table: Demonstration of simple table syntax.
1380The headers and table rows must each fit on one line. Column
1381alignments are determined by the position of the header text relative
1382to the dashed line below it:[^4]
1384 - If the dashed line is flush with the header text on the right side
1385 but extends beyond it on the left, the column is right-aligned.
1386 - If the dashed line is flush with the header text on the left side
1387 but extends beyond it on the right, the column is left-aligned.
1388 - If the dashed line extends beyond the header text on both sides,
1389 the column is centered.
1390 - If the dashed line is flush with the header text on both sides,
1391 the default alignment is used (in most cases, this will be left).
1393[^4]: This scheme is due to Michel Fortin, who proposed it on the
1394 [Markdown discussion list](http://six.pairlist.net/pipermail/markdown-discuss/2005-March/001097.html).
1396The table must end with a blank line, or a line of dashes followed by
1397a blank line. A caption may optionally be provided (as illustrated in
1398the example above). A caption is a paragraph beginning with the string
1399`Table:` (or just `:`), which will be stripped off. It may appear either
1400before or after the table.
1402The column headers may be omitted, provided a dashed line is used
1403to end the table. For example:
1405 ------- ------ ---------- -------
1409 ------- ------ ---------- -------
1411When headers are omitted, column alignments are determined on the basis
1412of the first line of the table body. So, in the tables above, the columns
1413would be right, left, center, and right aligned, respectively.
1417Multiline tables allow headers and table rows to span multiple lines
1418of text (but cells that span multiple columns or rows of the table are
1419not supported). Here is an example:
1421 -------------------------------------------------------------
1422 Centered Default Right Left
1423 Header Aligned Aligned Aligned
1424 ----------- ------- --------------- -------------------------
1425 First row 12.0 Example of a row that
1426 spans multiple lines.
1428 Second row 5.0 Here's another one. Note
1429 the blank line between
1431 -------------------------------------------------------------
1433 Table: Here's the caption. It, too, may span
1436These work like simple tables, but with the following differences:
1438 - They must begin with a row of dashes, before the header text
1439 (unless the headers are omitted).
1440 - They must end with a row of dashes, then a blank line.
1441 - The rows must be separated by blank lines.
1443In multiline tables, the table parser pays attention to the widths of
1444the columns, and the writers try to reproduce these relative widths in
1445the output. So, if you find that one of the columns is too narrow in the
1446output, try widening it in the markdown source.
1448Headers may be omitted in multiline tables as well as simple tables:
1450 ----------- ------- --------------- -------------------------
1451 First row 12.0 Example of a row that
1452 spans multiple lines.
1454 Second row 5.0 Here's another one. Note
1455 the blank line between
1457 -------------------------------------------------------------
1459 : Here's a multiline table without headers.
1461It is possible for a multiline table to have just one row, but the row
1462should be followed by a blank line (and then the row of dashes that ends
1463the table), or the table may be interpreted as a simple table.
1467Grid tables look like this:
1469 : Sample grid table.
1471 +---------------+---------------+--------------------+
1472 | Fruit | Price | Advantages |
1473 +===============+===============+====================+
1474 | Bananas | $1.34 | - built-in wrapper |
1475 | | | - bright color |
1476 +---------------+---------------+--------------------+
1477 | Oranges | $2.10 | - cures scurvy |
1479 +---------------+---------------+--------------------+
1481The row of `=`s separates the header from the table body, and can be
1482omitted for a headerless table. The cells of grid tables may contain
1483arbitrary block elements (multiple paragraphs, code blocks, lists,
1484etc.). Alignments are not supported, nor are cells that span multiple
1485columns or rows. Grid tables can be created easily using [Emacs table mode].
1487 [Emacs table mode]: http://table.sourceforge.net/
1491Pipe tables look like this:
1493 | Right | Left | Default | Center |
1494 |------:|:-----|---------|:------:|
1495 | 12 | 12 | 12 | 12 |
1496 | 123 | 123 | 123 | 123 |
1499 : Demonstration of simple table syntax.
1501The syntax is the same as in [PHP markdown extra]. The beginning and
1502ending pipe characters are optional, but pipes are required between all
1503columns. The colons indicate column alignment as shown. The header
1504can be omitted, but the horizontal line must still be included, as
1505it defines column alignments.
1507Since the pipes indicate column boundaries, columns need not be vertically
1508aligned, as they are in the above example. So, this is a perfectly
1509legal (though ugly) pipe table:
1517The cells of pipe tables cannot contain block elements like paragraphs
1518and lists, and cannot span multiple lines.
1520 [PHP markdown extra]: http://michelf.ca/projects/php-markdown/extra/#table
1522Note: Pandoc also recognizes pipe tables of the following
1523form, as can produced by Emacs' orgtbl-mode:
1530The difference is that `+` is used instead of `|`. Other orgtbl features
1531are not supported. In particular, to get non-default column alignment,
1532you'll need to add colons as above.
1537**Extension: `pandoc_title_block`**
1539If the file begins with a title block
1542 % author(s) (separated by semicolons)
1545it will be parsed as bibliographic information, not regular text. (It
1546will be used, for example, in the title of standalone LaTeX or HTML
1547output.) The block may contain just a title, a title and an author,
1548or all three elements. If you want to include an author but no
1549title, or a title and a date but no author, you need a blank line:
1558The title may occupy multiple lines, but continuation lines must
1559begin with leading space, thus:
1564If a document has multiple authors, the authors may be put on
1565separate lines with leading space, or separated by semicolons, or
1566both. So, all of the following are equivalent:
1571 % Author One; Author Two
1576The date must fit on one line.
1578All three metadata fields may contain standard inline formatting
1579(italics, links, footnotes, etc.).
1581Title blocks will always be parsed, but they will affect the output only
1582when the `--standalone` (`-s`) option is chosen. In HTML output, titles
1583will appear twice: once in the document head -- this is the title that
1584will appear at the top of the window in a browser -- and once at the
1585beginning of the document body. The title in the document head can have
1586an optional prefix attached (`--title-prefix` or `-T` option). The title
1587in the body appears as an H1 element with class "title", so it can be
1588suppressed or reformatted with CSS. If a title prefix is specified with
1589`-T` and no title block appears in the document, the title prefix will
1590be used by itself as the HTML title.
1592The man page writer extracts a title, man page section number, and
1593other header and footer information from the title line. The title
1594is assumed to be the first word on the title line, which may optionally
1595end with a (single-digit) section number in parentheses. (There should
1596be no space between the title and the parentheses.) Anything after
1597this is assumed to be additional footer and header text. A single pipe
1598character (`|`) should be used to separate the footer text from the header
1603will yield a man page with the title `PANDOC` and section 1.
1605 % PANDOC(1) Pandoc User Manuals
1607will also have "Pandoc User Manuals" in the footer.
1609 % PANDOC(1) Pandoc User Manuals | Version 4.0
1611will also have "Version 4.0" in the header.
1617**Extension: `all_symbols_escapable`**
1619Except inside a code block or inline code, any punctuation or space
1620character preceded by a backslash will be treated literally, even if it
1621would normally indicate formatting. Thus, for example, if one writes
1631 <strong>hello</strong>
1633This rule is easier to remember than standard markdown's rule,
1634which allows only the following characters to be backslash-escaped:
1638(However, if the `markdown_strict` format is used, the standard markdown rule
1641A backslash-escaped space is parsed as a nonbreaking space. It will
1642appear in TeX output as `~` and in HTML and XML as `\ ` or
1645A backslash-escaped newline (i.e. a backslash occurring at the end of
1646a line) is parsed as a hard line break. It will appear in TeX output as
1647`\\` and in HTML as `<br />`. This is a nice alternative to
1648markdown's "invisible" way of indicating hard line breaks using
1649two trailing spaces on a line.
1651Backslash escapes do not work in verbatim contexts.
1658If the `--smart` option is specified, pandoc will produce typographically
1659correct output, converting straight quotes to curly quotes, `---` to
1660em-dashes, `--` to en-dashes, and `...` to ellipses. Nonbreaking spaces
1661are inserted after certain abbreviations, such as "Mr."
1663Note: if your LaTeX template uses the `csquotes` package, pandoc will
1664detect automatically this and use `\enquote{...}` for quoted text.
1671To *emphasize* some text, surround it with `*`s or `_`, like this:
1673 This text is _emphasized with underscores_, and this
1674 is *emphasized with asterisks*.
1676Double `*` or `_` produces **strong emphasis**:
1678 This is **strong emphasis** and __with underscores__.
1680A `*` or `_` character surrounded by spaces, or backslash-escaped,
1681will not trigger emphasis:
1683 This is * not emphasized *, and \*neither is this\*.
1685**Extension: `intraword_underscores`**
1687Because `_` is sometimes used inside words and identifiers,
1688pandoc does not interpret a `_` surrounded by alphanumeric
1689characters as an emphasis marker. If you want to emphasize
1690just part of a word, use `*`:
1692 feas*ible*, not feas*able*.
1697**Extension: `strikeout`**
1699To strikeout a section of text with a horizontal line, begin and end it
1700with `~~`. Thus, for example,
1702 This ~~is deleted text.~~
1705### Superscripts and subscripts ###
1707**Extension: `superscript`, `subscript`**
1709Superscripts may be written by surrounding the superscripted text by `^`
1710characters; subscripts may be written by surrounding the subscripted
1711text by `~` characters. Thus, for example,
1713 H~2~O is a liquid. 2^10^ is 1024.
1715If the superscripted or subscripted text contains spaces, these spaces
1716must be escaped with backslashes. (This is to prevent accidental
1717superscripting and subscripting through the ordinary use of `~` and `^`.)
1718Thus, if you want the letter P with 'a cat' in subscripts, use
1719`P~a\ cat~`, not `P~a cat~`.
1724To make a short span of text verbatim, put it inside backticks:
1726 What is the difference between `>>=` and `>>`?
1728If the verbatim text includes a backtick, use double backticks:
1730 Here is a literal backtick `` ` ``.
1732(The spaces after the opening backticks and before the closing
1733backticks will be ignored.)
1735The general rule is that a verbatim span starts with a string
1736of consecutive backticks (optionally followed by a space)
1737and ends with a string of the same number of backticks (optionally
1738preceded by a space).
1740Note that backslash-escapes (and other markdown constructs) do not
1741work in verbatim contexts:
1743 This is a backslash followed by an asterisk: `\*`.
1745**Extension: `inline_code_attributes`**
1747Attributes can be attached to verbatim text, just as with
1748[fenced code blocks](#fenced-code-blocks):
1755**Extension: `tex_math_dollars`**
1757Anything between two `$` characters will be treated as TeX math. The
1758opening `$` must have a character immediately to its right, while the
1759closing `$` must have a character immediately to its left. Thus,
1760`$20,000 and $30,000` won't parse as math. If for some reason
1761you need to enclose text in literal `$` characters, backslash-escape
1762them and they won't be treated as math delimiters.
1764TeX math will be printed in all output formats. How it is rendered
1765depends on the output format:
1767Markdown, LaTeX, Org-Mode, ConTeXt
1768 ~ It will appear verbatim between `$` characters.
1771 ~ It will be rendered using an interpreted text role `:math:`, as described
1772 [here](http://www.american.edu/econ/itex2mml/mathhack.rst).
1775 ~ It will be rendered as `latexmath:[...]`.
1778 ~ It will be rendered inside a `@math` command.
1781 ~ It will be rendered verbatim without `$`'s.
1784 ~ It will be rendered inside `<math>` tags.
1787 ~ It will be rendered inside `<span class="math">` tags.
1789RTF, OpenDocument, ODT
1790 ~ It will be rendered, if possible, using unicode characters,
1791 and will otherwise appear verbatim.
1794 ~ If the `--mathml` flag is used, it will be rendered using mathml
1795 in an `inlineequation` or `informalequation` tag. Otherwise it
1796 will be rendered, if possible, using unicode characters.
1799 ~ It will be rendered using OMML math markup.
1802 ~ If the `--webtex` option is used, formulas are rendered as images
1803 using Google Charts or other compatible web service, downloaded
1804 and embedded in the e-book. Otherwise, they will appear verbatim.
1806HTML, Slidy, DZSlides, S5, EPUB
1807 ~ The way math is rendered in HTML will depend on the
1808 command-line options selected:
1810 1. The default is to render TeX math as far as possible using unicode
1811 characters, as with RTF, DocBook, and OpenDocument output. Formulas
1812 are put inside a `span` with `class="math"`, so that they may be
1813 styled differently from the surrounding text if needed.
1815 2. If the `--latexmathml` option is used, TeX math will be displayed
1816 between `$` or `$$` characters and put in `<span>` tags with class `LaTeX`.
1817 The [LaTeXMathML] script will be used to render it as formulas.
1818 (This trick does not work in all browsers, but it works in Firefox.
1819 In browsers that do not support LaTeXMathML, TeX math will appear
1820 verbatim between `$` characters.)
1822 3. If the `--jsmath` option is used, TeX math will be put inside
1823 `<span>` tags (for inline math) or `<div>` tags (for display math)
1824 with class `math`. The [jsMath] script will be used to render
1827 4. If the `--mimetex` option is used, the [mimeTeX] CGI script will
1828 be called to generate images for each TeX formula. This should
1829 work in all browsers. The `--mimetex` option takes an optional URL
1830 as argument. If no URL is specified, it will be assumed that the
1831 mimeTeX CGI script is at `/cgi-bin/mimetex.cgi`.
1833 5. If the `--gladtex` option is used, TeX formulas will be enclosed
1834 in `<eq>` tags in the HTML output. The resulting `htex` file may then
1835 be processed by [gladTeX], which will produce image files for each
1836 formula and an `html` file with links to these images. So, the
1839 pandoc -s --gladtex myfile.txt -o myfile.htex
1840 gladtex -d myfile-images myfile.htex
1841 # produces myfile.html and images in myfile-images
1843 6. If the `--webtex` option is used, TeX formulas will be converted
1844 to `<img>` tags that link to an external script that converts
1845 formulas to images. The formula will be URL-encoded and concatenated
1846 with the URL provided. If no URL is specified, the Google Chart
1847 API will be used (`http://chart.apis.google.com/chart?cht=tx&chl=`).
1849 7. If the `--mathjax` option is used, TeX math will be displayed
1850 between `\(...\)` (for inline math) or `\[...\]` (for display
1851 math) and put in `<span>` tags with class `math`.
1852 The [MathJax] script will be used to render it as formulas.
1857**Extenion: `raw_html`**
1859Markdown allows you to insert raw HTML (or DocBook) anywhere in a document
1860(except verbatim contexts, where `<`, `>`, and `&` are interpreted
1861literally). (Techncially this is not an extension, since standard
1862markdown allows it, but it has been made an extension so that it can
1863be disabled if desired.)
1865The raw HTML is passed through unchanged in HTML, S5, Slidy, Slideous,
1866DZSlides, EPUB, Markdown, and Textile output, and suppressed in other
1869**Extension: `markdown_in_html_blocks`**
1871Standard markdown allows you to include HTML "blocks": blocks
1872of HTML between balanced tags that are separated from the surrounding text
1873with blank lines, and start and end at the left margin. Within
1874these blocks, everything is interpreted as HTML, not markdown;
1875so (for example), `*` does not signify emphasis.
1877Pandoc behaves this way when the `markdown_strict` format is used; but
1878by default, pandoc interprets material between HTML block tags as markdown.
1879Thus, for example, Pandoc will turn
1884 <td>[a link](http://google.com)</td>
1892 <td><em>one</em></td>
1893 <td><a href="http://google.com">a link</a></td>
1897whereas `Markdown.pl` will preserve it as is.
1899There is one exception to this rule: text between `<script>` and
1900`<style>` tags is not interpreted as markdown.
1902This departure from standard markdown should make it easier to mix
1903markdown with HTML block elements. For example, one can surround
1904a block of markdown text with `<div>` tags without preventing it
1905from being interpreted as markdown.
1910**Extension: `raw_tex`**
1912In addition to raw HTML, pandoc allows raw LaTeX, TeX, and ConTeXt to be
1913included in a document. Inline TeX commands will be preserved and passed
1914unchanged to the LaTeX and ConTeXt writers. Thus, for example, you can use
1915LaTeX to include BibTeX citations:
1917 This result was proved in \cite{jones.1967}.
1919Note that in LaTeX environments, like
1921 \begin{tabular}{|l|l|}\hline
1922 Age & Frequency \\ \hline
1925 36--45 & 22 \\ \hline
1928the material between the begin and end tags will be interpreted as raw
1929LaTeX, not as markdown.
1931Inline LaTeX is ignored in output formats other than Markdown, LaTeX,
1937**Extension: `latex_macros`**
1939For output formats other than LaTeX, pandoc will parse LaTeX `\newcommand` and
1940`\renewcommand` definitions and apply the resulting macros to all LaTeX
1941math. So, for example, the following will work in all output formats,
1944 \newcommand{\tuple}[1]{\langle #1 \rangle}
1948In LaTeX output, the `\newcommand` definition will simply be passed
1949unchanged to the output.
1955Markdown allows links to be specified in several ways.
1957### Automatic links ###
1959If you enclose a URL or email address in pointy brackets, it
1963 <sam@green.eggs.ham>
1965**Extension: `autolink_code_spans`**
1967Pandoc will render autolinked URLs and email addresses as
1972An inline link consists of the link text in square brackets,
1973followed by the URL in parentheses. (Optionally, the URL can
1974be followed by a link title, in quotes.)
1976 This is an [inline link](/url), and here's [one with
1977 a title](http://fsf.org "click here for a good time!").
1979There can be no space between the bracketed part and the parenthesized part.
1980The link text can contain formatting (such as emphasis), but the title cannot.
1983### Reference links ###
1985An *explicit* reference link has two parts, the link itself and the link
1986definition, which may occur elsewhere in the document (either
1987before or after the link).
1989The link consists of link text in square brackets, followed by a label in
1990square brackets. (There can be space between the two.) The link definition
1991consists of the bracketed label, followed by a colon and a space, followed by
1992the URL, and optionally (after a space) a link title either in quotes or in
1995Here are some examples:
1997 [my label 1]: /foo/bar.html "My title, optional"
1999 [my label 3]: http://fsf.org (The free software foundation)
2000 [my label 4]: /bar#special 'A title in single quotes'
2002The URL may optionally be surrounded by angle brackets:
2004 [my label 5]: <http://foo.bar.baz>
2006The title may go on the next line:
2008 [my label 3]: http://fsf.org
2009 "The free software foundation"
2011Note that link labels are not case sensitive. So, this will work:
2013 Here is [my link][FOO]
2017In an *implicit* reference link, the second pair of brackets is
2018empty, or omitted entirely:
2020 See [my website][], or [my website].
2022 [my website]: http://foo.bar.baz
2024Note: In `Markdown.pl` and most other markdown implementations,
2025reference link definitions cannot occur in nested constructions
2026such as list items or block quotes. Pandoc lifts this arbitrary
2027seeming restriction. So the following is fine in pandoc, though
2028not in most other implementations:
2036To link to another section of the same document, use the automatically
2037generated identifier (see [Header identifiers in HTML, LaTeX, and
2038ConTeXt](#header-identifiers-in-html-latex-and-context), below).
2041 See the [Introduction](#introduction).
2045 See the [Introduction].
2047 [Introduction]: #introduction
2049Internal links are currently supported for HTML formats (including
2050HTML slide shows and EPUB), LaTeX, and ConTeXt.
2055A link immediately preceded by a `!` will be treated as an image.
2056The link text will be used as the image's alt text:
2058 
2062 [movie reel]: movie.gif
2064### Pictures with captions ###
2068An image occurring by itself in a paragraph will be rendered as
2069a figure with a caption.[^5] (In LaTeX, a figure environment will be
2070used; in HTML, the image will be placed in a `div` with class
2071`figure`, together with a caption in a `p` with class `caption`.)
2072The image's alt text will be used as the caption.
2074 
2076[^5]: This feature is not yet implemented for RTF, OpenDocument, or
2077 ODT. In those formats, you'll just get an image in a paragraph by
2078 itself, with no caption.
2080If you just want a regular inline image, just make sure it is not
2081the only thing in the paragraph. One way to do this is to insert a
2082nonbreaking space after the image:
2084 \
2090**Extension: `footnotes`**
2092Pandoc's markdown allows footnotes, using the following syntax:
2094 Here is a footnote reference,[^1] and another.[^longnote]
2096 [^1]: Here is the footnote.
2098 [^longnote]: Here's one with multiple blocks.
2100 Subsequent paragraphs are indented to show that they
2101 belong to the previous footnote.
2105 The whole paragraph can be indented, or just the first
2106 line. In this way, multi-paragraph footnotes work like
2107 multi-paragraph list items.
2109 This paragraph won't be part of the note, because it
2112The identifiers in footnote references may not contain spaces, tabs,
2113or newlines. These identifiers are used only to correlate the
2114footnote reference with the note itself; in the output, footnotes
2115will be numbered sequentially.
2117The footnotes themselves need not be placed at the end of the
2118document. They may appear anywhere except inside other block elements
2119(lists, block quotes, tables, etc.).
2121**Extension: `inline_notes`**
2123Inline footnotes are also allowed (though, unlike regular notes,
2124they cannot contain multiple paragraphs). The syntax is as follows:
2126 Here is an inline note.^[Inlines notes are easier to write, since
2127 you don't have to pick an identifier and move down to type the
2130Inline and regular footnotes may be mixed freely.
2136**Extension: `citations`**
2138Pandoc can automatically generate citations and a bibliography in a number of
2139styles (using Andrea Rossato's `hs-citeproc`). In order to use this feature,
2140you will need a bibliographic database in one of the following formats:
2142 Format File extension
2143 ------------ --------------
2145 BibTeX/BibLaTeX .bib
2154You will need to specify the bibliography file using the `--bibliography`
2155command-line option (which may be repeated if you have several
2158By default, pandoc will use a Chicago author-date format for citations
2159and references. To use another style, you will need to use the
2160`--csl` option to specify a [CSL] 1.0 style file. A primer on
2161creating and modifying CSL styles can be found at
2162<http://citationstyles.org/downloads/primer.html>.
2163A repository of CSL styles can be found at
2164<https://github.com/citation-style-language/styles>.
2165See also <http://zotero.org/styles> for easy browsing.
2167Citations go inside square brackets and are separated by semicolons.
2168Each citation must have a key, composed of '@' + the citation
2169identifier from the database, and may optionally have a prefix,
2170a locator, and a suffix. Here are some examples:
2172 Blah blah [see @doe99, pp. 33-35; also @smith04, ch. 1].
2174 Blah blah [@doe99, pp. 33-35, 38-39 and *passim*].
2176 Blah blah [@smith04; @doe99].
2178A minus sign (`-`) before the `@` will suppress mention of
2179the author in the citation. This can be useful when the
2180author is already mentioned in the text:
2182 Smith says blah [-@smith04].
2184You can also write an in-text citation, as follows:
2188 @smith04 [p. 33] says blah.
2190If the style calls for a list of works cited, it will be placed
2191at the end of the document. Normally, you will want to end your
2192document with an appropriate header:
2198The bibliography will be inserted after this header.
2200Non-pandoc extensions
2201=====================
2203The following markdown syntax extensions are not enabled by default
2204in pandoc, but may be enabled by adding `+EXTENSION` to the format
2205name, where `EXTENSION` is the name of the extension. Thus, for
2206example, `markdown+hard_line_breaks` is markdown with hard line breaks.
2208**Extension: `hard_line_breaks`**\
2209Causes all newlines within a paragraph to be interpreted as hard line
2210breaks instead of spaces.
2212**Extension: `tex_math_single_backslash`**\
2213Causes anything between `\(` and `\)` to be interpreted as inline
2214TeX math, and anything between `\[` and `\]` to be interpreted
2215as display TeX math. Note: a drawback of this extension is that
2216it precludes escaping `(` and `[`.
2218**Extension: `tex_math_double_backslash`**\
2219Causes anything between `\\(` and `\\)` to be interpreted as inline
2220TeX math, and anything between `\\[` and `\\]` to be interpreted
2223**Extension: `markdown_attribute`**\
2224Causes the attribute `markdown=1` to be added to all block-level
2225HTML tags that might contain markdown. In pandoc, material inside
2226block-level tags is interpreted a markdown by default, but in some
2227other implementations, the `markdown=1` tag is needed.
2229**Extension: `mmd_title_block`**\
2230Enables a [MultiMarkdown] style title block at the top of
2231the document, for example:
2235 Date: September 1, 2008
2236 Comment: This is a sample mmd title block, with
2237 a field spanning multiple lines.
2239See the MultiMarkdown documentation for details. Note that only title,
2240author, and date are recognized; other fields are simply ignored by
2241pandoc. If `pandoc_title_block` is enabled, it will take precedence over
2244 [MultiMarkdown]: http://fletcherpenney.net/multimarkdown/
2246**Extension: `abbrevations`**\
2247Parses PHP Markdown Extra abbreviation keys, like
2249 *[HTML]: Hyper Text Markup Language
2251Note that the pandoc document model does not support
2252abbreviations, so if this extension is enabled, abbreviation keys are
2253simply skipped (as opposed to being parsed as paragraphs).
2255Producing slide shows with Pandoc
2256=================================
2258You can use Pandoc to produce an HTML + javascript slide presentation
2259that can be viewed via a web browser. There are four ways to do this,
2260using [S5], [DZSlides], [Slidy], or [Slideous]. You can also produce a
2261PDF slide show using LaTeX [beamer].
2263Here's the markdown source for a simple slide show, `habits.txt`:
2290 
2297To produce the slide show, simply type
2299 pandoc -t s5 -s habits.txt -o habits.html
2303 pandoc -t slidy -s habits.txt -o habits.html
2307 pandoc -t slideous -s habits.txt -o habits.html
2311 pandoc -t dzslides -s habits.txt -o habits.html
2315 pandoc -t beamer habits.txt -o habits.pdf
2319With all HTML slide formats, the `--self-contained` option can be used to
2320produce a single file that contains all of the data necessary to display the
2321slide show, including linked scripts, stylesheets, images, and videos.
2323Structuring the slide show
2324--------------------------
2326By default, the *slide level* is the highest header level in
2327the hierarchy that is followed immediately by content, and not another
2328header, somewhere in the document. In the example above, level 1 headers
2329are always followed by level 2 headers, which are followed by content,
2330so 2 is the slide level. This default can be overridden using
2331the `--slide-level` option.
2333The document is carved up into slides according to the following
2336 * A horizontal rule always starts a new slide.
2338 * A header at the slide level always starts a new slide.
2340 * Headers *below* the slide level in the hierarchy create
2341 headers *within* a slide.
2343 * Headers *above* the slide level in the hierarchy create
2344 "title slides," which just contain the section title
2345 and help to break the slide show into sections.
2347 * A title page is constructed automatically from the document's title
2348 block, if present. (In the case of beamer, this can be disabled
2349 by commenting out some lines in the default template.)
2351These rules are designed to support many different styles of slide show. If
2352you don't care about structuring your slides into sections and subsections,
2353you can just use level 1 headers for all each slide. (In that case, level 1
2354will be the slide level.) But you can also structure the slide show into
2355sections, as in the example above.
2357For Slidy, Slideous and S5, the file produced by pandoc with the
2359option embeds a link to javascripts and CSS files, which are assumed to
2360be available at the relative path `s5/default` (for S5) or `slideous`
2361(for Slideous), or at the Slidy
2362website at `w3.org` (for Slidy). (These paths can be changed by setting
2363the `slidy-url`, `slideous-url` or `s5-url` variables; see `--variable`,
2364above.) For DZSlides,
2365the (relatively short) javascript and css are included in the file by default.
2370By default, these writers produces lists that display "all at once."
2371If you want your lists to display incrementally (one item at a time),
2372use the `-i` option. If you want a particular list to depart from the
2373default (that is, to display incrementally without the `-i` option and
2374all at once with the `-i` option), put it in a block quote:
2379In this way incremental and nonincremental lists can be mixed in
2385You can change the style of HTML slides by putting customized CSS files
2386in `$DATADIR/s5/default` (for S5), `$DATADIR/slidy` (for Slidy),
2387or `$DATADIR/slideous` (for Slideous),
2388where `$DATADIR` is the user data directory (see `--data-dir`, above).
2389The originals may be found in pandoc's system data directory (generally
2390`$CABALDIR/pandoc-VERSION/s5/default`). Pandoc will look there for any
2391files it does not find in the user data directory.
2393For dzslides, the CSS is included in the HTML file itself, and may
2396To style beamer slides, you can specify a beamer "theme" or "colortheme"
2397using the `-V` option:
2399 pandoc -t beamer habits.txt -V theme:Warsaw -o habits.pdf
2401Literate Haskell support
2402========================
2404If you append `+lhs` to an appropriate input or output format (`markdown`,
2405`mardkown_strict`, `rst`, or `latex` for input or output; `beamer`,
2406`html` or `html5` for output only), pandoc will treat the document as
2407literate Haskell source. This means that
2409 - In markdown input, "bird track" sections will be parsed as Haskell
2410 code rather than block quotations. Text between `\begin{code}`
2411 and `\end{code}` will also be treated as Haskell code.
2413 - In markdown output, code blocks with classes `haskell` and `literate`
2414 will be rendered using bird tracks, and block quotations will be
2415 indented one space, so they will not be treated as Haskell code.
2416 In addition, headers will be rendered setext-style (with underlines)
2417 rather than atx-style (with '#' characters). (This is because ghc
2418 treats '#' characters in column 1 as introducing line numbers.)
2420 - In restructured text input, "bird track" sections will be parsed
2423 - In restructured text output, code blocks with class `haskell` will
2424 be rendered using bird tracks.
2426 - In LaTeX input, text in `code` environments will be parsed as
2429 - In LaTeX output, code blocks with class `haskell` will be rendered
2430 inside `code` environments.
2432 - In HTML output, code blocks with class `haskell` will be rendered
2433 with class `literatehaskell` and bird tracks.
2437 pandoc -f markdown+lhs -t html
2439reads literate Haskell source formatted with markdown conventions and writes
2440ordinary HTML (without bird tracks).
2442 pandoc -f markdown+lhs -t html+lhs
2444writes HTML with the Haskell code in bird tracks, so it can be copied
2445and pasted as literate Haskell source.
2450© 2006-2011 John MacFarlane (jgm at berkeley dot edu). Released under the
2451[GPL], version 2 or greater. This software carries no warranty of
2452any kind. (See COPYRIGHT for full copyright and warranty notices.)
2453Other contributors include Recai Oktaş, Paulo Tanimoto, Peter Wang,
2454Andrea Rossato, Eric Kow, infinity0x, Luke Plant, shreevatsa.public,
2455Puneeth Chaganti, Paul Rivier, rodja.trappe, Bradley Kuhn, thsutton,
2456Nathan Gass, Jonathan Daugherty, Jérémy Bobbio, Justin Bogner, qerub,
2457Christopher Sawicki, Kelsey Hightower, Masayoshi Takahashi, Antoine
2458Latter, Ralf Stephan, Eric Seidel, B. Scott Michel, Gavin Beatty,
2461[markdown]: http://daringfireball.net/projects/markdown/
2462[reStructuredText]: http://docutils.sourceforge.net/docs/ref/rst/introduction.html
2463[S5]: http://meyerweb.com/eric/tools/s5/
2464[Slidy]: http://www.w3.org/Talks/Tools/Slidy/
2465[Slideous]: http://goessner.net/articles/slideous/
2466[HTML]: http://www.w3.org/TR/html40/
2467[HTML 5]: http://www.w3.org/TR/html5/
2468[XHTML]: http://www.w3.org/TR/xhtml1/
2469[LaTeX]: http://www.latex-project.org/
2470[beamer]: http://www.tex.ac.uk/CTAN/macros/latex/contrib/beamer
2471[ConTeXt]: http://www.pragma-ade.nl/
2472[RTF]: http://en.wikipedia.org/wiki/Rich_Text_Format
2473[DocBook XML]: http://www.docbook.org/
2474[OpenDocument XML]: http://opendocument.xml.org/
2475[ODT]: http://en.wikipedia.org/wiki/OpenDocument
2476[Textile]: http://redcloth.org/textile
2477[MediaWiki markup]: http://www.mediawiki.org/wiki/Help:Formatting
2478[groff man]: http://developer.apple.com/DOCUMENTATION/Darwin/Reference/ManPages/man7/groff_man.7.html
2479[Haskell]: http://www.haskell.org/
2480[GNU Texinfo]: http://www.gnu.org/software/texinfo/
2481[Emacs Org-Mode]: http://orgmode.org
2482[AsciiDoc]: http://www.methods.co.nz/asciidoc/
2483[EPUB]: http://www.idpf.org/
2484[GPL]: http://www.gnu.org/copyleft/gpl.html "GNU General Public License"
2485[DZSlides]: http://paulrouget.com/dzslides/
2486[ISO 8601 format]: http://www.w3.org/TR/NOTE-datetime
2487[Word docx]: http://www.microsoft.com/interop/openup/openxml/default.aspx
2488[PDF]: http://www.adobe.com/pdf/
2489[FictionBook2]: http://www.fictionbook.org/index.php/Eng:XML_Schema_Fictionbook_2.1
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list