@@ -1,13 +1,13 @@
1−'\" t
2−.\" Automatically generated by Pandoc 2.14.0.1
1+.\"t
2+.\" Automatically generated by Pandoc 2.10.1
33.\"
4−.TH "Pandoc User\[cq]s Guide" "" "June 20, 2021" "pandoc 2.14.0.3" ""
4+.TH "Pandoc User\[aq]s Guide" "" "July 23, 2020" "pandoc 2.10.1" ""
55.hy
66.SH NAME
77pandoc - general markup converter
88.SH SYNOPSIS
99.PP
10−\f[C]pandoc\f[R] [\f[I]options\f[R]] [\f[I]input-file\f[R]]\&...
10+\f[C]pandoc\f[R] [\f[I]options\f[R]] [\f[I]input-file\f[R]]...
1111.SH DESCRIPTION
1212.PP
1313Pandoc is a Haskell library for converting from one markup format to
@@ -20,10 +20,10 @@ For the full lists of input and output formats, see the \f[C]--from\f[R]
2020and \f[C]--to\f[R] options below.
2121Pandoc can also produce PDF output: see creating a PDF, below.
2222.PP
23−Pandoc\[cq]s enhanced version of Markdown includes syntax for tables,
23+Pandoc\[aq]s enhanced version of Markdown includes syntax for tables,
2424definition lists, metadata blocks, footnotes, citations, math, and much
2525more.
26−See below under Pandoc\[cq]s Markdown.
26+See below under Pandoc\[aq]s Markdown.
2727.PP
2828Pandoc has a modular design: it consists of a set of readers, which
2929parse text in a given format and produce a native representation of the
@@ -33,15 +33,15 @@ Thus, adding an input or output format requires only adding a reader or
3333writer.
3434Users can also run custom pandoc filters to modify the intermediate AST.
3535.PP
36−Because pandoc\[cq]s intermediate representation of a document is less
36+Because pandoc\[aq]s intermediate representation of a document is less
3737expressive than many of the formats it converts between, one should not
3838expect perfect conversions between every format and every other.
3939Pandoc attempts to preserve the structural elements of a document, but
4040not formatting details such as margin size.
4141And some document elements, such as complex tables, may not fit into
42−pandoc\[cq]s simple document model.
43−While conversions from pandoc\[cq]s Markdown to all formats aspire to be
44−perfect, conversions from formats more expressive than pandoc\[cq]s
42+pandoc\[aq]s simple document model.
43+While conversions from pandoc\[aq]s Markdown to all formats aspire to be
44+perfect, conversions from formats more expressive than pandoc\[aq]s
4545Markdown can be expected to be lossy.
4646.SS Using pandoc
4747.PP
@@ -57,9 +57,9 @@ pandoc -o output.html input.txt
5757.fi
5858.PP
5959By default, pandoc produces a document fragment.
60−To produce a standalone document (e.g.\ a valid HTML file including
61−\f[C]<head>\f[R] and \f[C]<body>\f[R]), use the \f[C]-s\f[R] or
62−\f[C]--standalone\f[R] flag:
60+To produce a standalone document (e.g.
61+a valid HTML file including \f[C]<head>\f[R] and \f[C]<body>\f[R]), use
62+the \f[C]-s\f[R] or \f[C]--standalone\f[R] flag:
6363.IP
6464.nf
6565\f[C]
@@ -115,10 +115,10 @@ pandoc -o hello.tex hello.txt
115115.PP
116116will convert \f[C]hello.txt\f[R] from Markdown to LaTeX.
117117If no output file is specified (so that output goes to
118−\f[I]stdout\f[R]), or if the output file\[cq]s extension is unknown, the
118+\f[I]stdout\f[R]), or if the output file\[aq]s extension is unknown, the
119119output format will default to HTML.
120120If no input file is specified (so that input comes from
121−\f[I]stdin\f[R]), or if the input files\[cq] extensions are unknown, the
121+\f[I]stdin\f[R]), or if the input files\[aq] extensions are unknown, the
122122input format will be assumed to be Markdown.
123123.SS Character encoding
124124.PP
@@ -172,15 +172,15 @@ You can then test it with \f[C]pdflatex test.tex\f[R].
172172When using LaTeX, the following packages need to be available (they are
173173included with all recent versions of TeX Live): \f[C]amsfonts\f[R],
174174\f[C]amsmath\f[R], \f[C]lm\f[R], \f[C]unicode-math\f[R],
175−\f[C]iftex\f[R], \f[C]listings\f[R] (if the \f[C]--listings\f[R] option
176−is used), \f[C]fancyvrb\f[R], \f[C]longtable\f[R], \f[C]booktabs\f[R],
177−\f[C]graphicx\f[R] (if the document contains images),
178−\f[C]hyperref\f[R], \f[C]xcolor\f[R], \f[C]ulem\f[R], \f[C]geometry\f[R]
179−(with the \f[C]geometry\f[R] variable set), \f[C]setspace\f[R] (with
180−\f[C]linestretch\f[R]), and \f[C]babel\f[R] (with \f[C]lang\f[R]).
175+\f[C]ifxetex\f[R], \f[C]ifluatex\f[R], \f[C]listings\f[R] (if the
176+\f[C]--listings\f[R] option is used), \f[C]fancyvrb\f[R],
177+\f[C]longtable\f[R], \f[C]booktabs\f[R], \f[C]graphicx\f[R] (if the
178+document contains images), \f[C]hyperref\f[R], \f[C]xcolor\f[R],
179+\f[C]ulem\f[R], \f[C]geometry\f[R] (with the \f[C]geometry\f[R] variable
180+set), \f[C]setspace\f[R] (with \f[C]linestretch\f[R]), and
181+\f[C]babel\f[R] (with \f[C]lang\f[R]).
181182The use of \f[C]xelatex\f[R] or \f[C]lualatex\f[R] as the PDF engine
182183requires \f[C]fontspec\f[R].
183−\f[C]lualatex\f[R] uses \f[C]selnolig\f[R].
184184\f[C]xelatex\f[R] uses \f[C]polyglossia\f[R] (with \f[C]lang\f[R]),
185185\f[C]xecjk\f[R], and \f[C]bidi\f[R] (with the \f[C]dir\f[R] variable
186186set).
@@ -227,18 +227,12 @@ Specify input format.
227227\f[I]FORMAT\f[R] can be:
228228.RS
229229.IP \[bu] 2
230−\f[C]bibtex\f[R] (BibTeX bibliography)
231−.IP \[bu] 2
232−\f[C]biblatex\f[R] (BibLaTeX bibliography)
233−.IP \[bu] 2
234230\f[C]commonmark\f[R] (CommonMark Markdown)
235231.IP \[bu] 2
236232\f[C]commonmark_x\f[R] (CommonMark Markdown with extensions)
237233.IP \[bu] 2
238234\f[C]creole\f[R] (Creole 1.0)
239235.IP \[bu] 2
240−\f[C]csljson\f[R] (CSL JSON bibliography)
241−.IP \[bu] 2
242236\f[C]csv\f[R] (CSV table)
243237.IP \[bu] 2
244238\f[C]docbook\f[R] (DocBook)
@@ -269,7 +263,7 @@ if you need extensions not supported in \f[C]gfm\f[R].
269263.IP \[bu] 2
270264\f[C]latex\f[R] (LaTeX)
271265.IP \[bu] 2
272−\f[C]markdown\f[R] (Pandoc\[cq]s Markdown)
266+\f[C]markdown\f[R] (Pandoc\[aq]s Markdown)
273267.IP \[bu] 2
274268\f[C]markdown_mmd\f[R] (MultiMarkdown)
275269.IP \[bu] 2
@@ -319,18 +313,12 @@ Specify output format.
319313.IP \[bu] 2
320314\f[C]beamer\f[R] (LaTeX beamer slide show)
321315.IP \[bu] 2
322−\f[C]bibtex\f[R] (BibTeX bibliography)
323−.IP \[bu] 2
324−\f[C]biblatex\f[R] (BibLaTeX bibliography)
325−.IP \[bu] 2
326316\f[C]commonmark\f[R] (CommonMark Markdown)
327317.IP \[bu] 2
328318\f[C]commonmark_x\f[R] (CommonMark Markdown with extensions)
329319.IP \[bu] 2
330320\f[C]context\f[R] (ConTeXt)
331321.IP \[bu] 2
332−\f[C]csljson\f[R] (CSL JSON bibliography)
333−.IP \[bu] 2
334322\f[C]docbook\f[R] or \f[C]docbook4\f[R] (DocBook 4)
335323.IP \[bu] 2
336324\f[C]docbook5\f[R] (DocBook 5)
@@ -351,8 +339,8 @@ if you need extensions not supported in \f[C]gfm\f[R].
351339.IP \[bu] 2
352340\f[C]haddock\f[R] (Haddock markup)
353341.IP \[bu] 2
354−\f[C]html\f[R] or \f[C]html5\f[R] (HTML, i.e.\ HTML5/XHTML polyglot
355−markup)
342+\f[C]html\f[R] or \f[C]html5\f[R] (HTML, i.e.
343+HTML5/XHTML polyglot markup)
356344.IP \[bu] 2
357345\f[C]html4\f[R] (XHTML 1.0 Transitional)
358346.IP \[bu] 2
@@ -376,7 +364,7 @@ markup)
376364.IP \[bu] 2
377365\f[C]man\f[R] (roff man)
378366.IP \[bu] 2
379−\f[C]markdown\f[R] (Pandoc\[cq]s Markdown)
367+\f[C]markdown\f[R] (Pandoc\[aq]s Markdown)
380368.IP \[bu] 2
381369\f[C]markdown_mmd\f[R] (MultiMarkdown)
382370.IP \[bu] 2
@@ -457,15 +445,16 @@ On *nix and macOS systems this will be the \f[C]pandoc\f[R] subdirectory
457445of the XDG data directory (by default, \f[C]$HOME/.local/share\f[R],
458446overridable by setting the \f[C]XDG_DATA_HOME\f[R] environment
459447variable).
460−If that directory does not exist and \f[C]$HOME/.pandoc\f[R] exists, it
461−will be used (for backwards compatibility).
462−On Windows the default user data directory is
448+If that directory does not exist, \f[C]$HOME/.pandoc\f[R] will be used
449+(for backwards compatibility).
450+In Windows the default user data directory is
463451\f[C]C:\[rs]Users\[rs]USERNAME\[rs]AppData\[rs]Roaming\[rs]pandoc\f[R].
464452You can find the default user data directory on your system by looking
465453at the output of \f[C]pandoc --version\f[R].
466−Data files placed in this directory (for example,
467−\f[C]reference.odt\f[R], \f[C]reference.docx\f[R], \f[C]epub.css\f[R],
468−\f[C]templates\f[R]) will override pandoc\[cq]s normal defaults.
454+A \f[C]reference.odt\f[R], \f[C]reference.docx\f[R], \f[C]epub.css\f[R],
455+\f[C]templates\f[R], \f[C]slidy\f[R], \f[C]slideous\f[R], or
456+\f[C]s5\f[R] directory placed in this directory will override
457+pandoc\[aq]s normal defaults.
469458.TP
470459\f[B]\f[CB]-d\f[B]\f[R] \f[I]FILE\f[R], \f[B]\f[CB]--defaults=\f[B]\f[R]\f[I]FILE\f[R]
471460Specify a set of default option settings.
@@ -518,7 +507,7 @@ List supported output formats, one per line.
518507List supported extensions for \f[I]FORMAT\f[R], one per line, preceded
519508by a \f[C]+\f[R] or \f[C]-\f[R] indicating whether it is enabled by
520509default in \f[I]FORMAT\f[R].
521−If \f[I]FORMAT\f[R] is not specified, defaults for pandoc\[cq]s Markdown
510+If \f[I]FORMAT\f[R] is not specified, defaults for pandoc\[aq]s Markdown
522511are given.
523512.TP
524513\f[B]\f[CB]--list-highlight-languages\f[B]\f[R]
@@ -563,7 +552,7 @@ This option is useful for converting word processing documents where
563552users have used empty paragraphs to create inter-paragraph space.
564553.TP
565554\f[B]\f[CB]--indented-code-classes=\f[B]\f[R]\f[I]CLASSES\f[R]
566−Specify classes to use for indented code blocks\[en]for example,
555+Specify classes to use for indented code blocks--for example,
567556\f[C]perl,numberLines\f[R] or \f[C]haskell\f[R].
568557Multiple classes may be separated by spaces or commas.
569558.TP
@@ -585,7 +574,7 @@ Reading binary files (docx, odt, epub) implies \f[C]--file-scope\f[R].
585574Specify an executable to be used as a filter transforming the pandoc AST
586575after the input is parsed and before the output is written.
587576The executable should read JSON from stdin and write JSON to stdout.
588−The JSON must be formatted like pandoc\[cq]s own JSON input and output.
577+The JSON must be formatted like pandoc\[aq]s own JSON input and output.
589578The name of the output format will be passed to the filter as the first
590579argument.
591580Hence,
@@ -625,13 +614,13 @@ above).
625614.IP "3." 3
626615\f[C]$PATH\f[R] (executable only)
627616.PP
628−Filters, Lua-filters, and citeproc processing are applied in the order
629−specified on the command line.
617+Filters and Lua-filters are applied in the order specified on the
618+command line.
630619.RE
631620.TP
632621\f[B]\f[CB]-L\f[B]\f[R] \f[I]SCRIPT\f[R], \f[B]\f[CB]--lua-filter=\f[B]\f[R]\f[I]SCRIPT\f[R]
633622Transform the document in a similar fashion as JSON filters (see
634−\f[C]--filter\f[R]), but use pandoc\[cq]s built-in Lua filtering system.
623+\f[C]--filter\f[R]), but use pandoc\[aq]s build-in Lua filtering system.
635624The given Lua script is expected to return a list of Lua filters which
636625will be applied in order.
637626Each Lua filter must contain element-transforming functions indexed by
@@ -641,19 +630,31 @@ applied.
641630.PP
642631The \f[C]pandoc\f[R] Lua module provides helper functions for element
643632creation.
644−It is always loaded into the script\[cq]s Lua environment.
633+It is always loaded into the script\[aq]s Lua environment.
645634.PP
646−See the Lua filters documentation for further details.
635+The following is an example Lua script for macro-expansion:
636+.IP
637+.nf
638+\f[C]
639+function expand_hello_world(inline)
640+ if inline.c == \[aq]{{helloworld}}\[aq] then
641+ return pandoc.Emph{ pandoc.Str \[dq]Hello, World\[dq] }
642+ else
643+ return inline
644+ end
645+end
646+
647+return {{Str = expand_hello_world}}
648+\f[R]
649+.fi
647650.PP
648651In order of preference, pandoc will look for Lua filters in
649652.IP "1." 3
650−a specified full or relative path
653+a specified full or relative path (executable or non-executable)
651654.IP "2." 3
652−\f[C]$DATADIR/filters\f[R] where \f[C]$DATADIR\f[R] is the user data
653−directory (see \f[C]--data-dir\f[R], above).
654−.PP
655−Filters, Lua filters, and citeproc processing are applied in the order
656−specified on the command line.
655+\f[C]$DATADIR/filters\f[R] (executable or non-executable) where
656+\f[C]$DATADIR\f[R] is the user data directory (see \f[C]--data-dir\f[R],
657+above).
657658.RE
658659.TP
659660\f[B]\f[CB]-M\f[B]\f[R] \f[I]KEY\f[R][\f[B]\f[CB]=\f[B]\f[R]\f[I]VAL\f[R]], \f[B]\f[CB]--metadata=\f[B]\f[R]\f[I]KEY\f[R][\f[B]\f[CB]:\f[B]\f[R]\f[I]VAL\f[R]]
@@ -693,13 +694,13 @@ Specify the number of spaces per tab (default is 4).
693694.TP
694695\f[B]\f[CB]--track-changes=accept\f[B]\f[R]|\f[B]\f[CB]reject\f[B]\f[R]|\f[B]\f[CB]all\f[B]\f[R]
695696Specifies what to do with insertions, deletions, and comments produced
696−by the MS Word \[lq]Track Changes\[rq] feature.
697−\f[C]accept\f[R] (the default) processes all the insertions and
697+by the MS Word \[dq]Track Changes\[dq] feature.
698+\f[C]accept\f[R] (the default), inserts all insertions, and ignores all
698699deletions.
699−\f[C]reject\f[R] ignores them.
700+\f[C]reject\f[R] inserts all deletions and ignores insertions.
700701Both \f[C]accept\f[R] and \f[C]reject\f[R] ignore comments.
701−\f[C]all\f[R] includes all insertions, deletions, and comments, wrapped
702−in spans with \f[C]insertion\f[R], \f[C]deletion\f[R],
702+\f[C]all\f[R] puts in insertions, deletions, and comments, wrapped in
703+spans with \f[C]insertion\f[R], \f[C]deletion\f[R],
703704\f[C]comment-start\f[R], and \f[C]comment-end\f[R] classes,
704705respectively.
705706The author and time of change is included.
@@ -716,11 +717,11 @@ Extract images and other media contained in or linked from the source
716717document to the path \f[I]DIR\f[R], creating it if necessary, and adjust
717718the images references in the document so they point to the extracted
718719files.
719−Media are downloaded, read from the file system, or extracted from a
720−binary container (e.g.\ docx), as needed.
721−The original file paths are used if they are relative paths not
722−containing \f[C]..\f[R].
723−Otherwise filenames are constructed from the SHA1 hash of the contents.
720+If the source format is a binary container (docx, epub, or odt), the
721+media is extracted from the container and the original filenames are
722+used.
723+Otherwise the media is read from the file system or downloaded, and new
724+filenames are constructed based on SHA1 hashes of the contents.
724725.TP
725726\f[B]\f[CB]--abbreviations=\f[B]\f[R]\f[I]FILE\f[R]
726727Specifies a custom abbreviations file, with abbreviations one to a line.
@@ -730,14 +731,14 @@ system default.
730731To see the system default, use
731732\f[C]pandoc --print-default-data-file=abbreviations\f[R].
732733The only use pandoc makes of this list is in the Markdown reader.
733−Strings found in this list will be followed by a nonbreaking space, and
734−the period will not produce sentence-ending space in formats like LaTeX.
735−The strings may not contain spaces.
734+Strings ending in a period that are found in this list will be followed
735+by a nonbreaking space, so that the period will not produce
736+sentence-ending space in formats like LaTeX.
736737.SS General writer options
737738.TP
738739\f[B]\f[CB]-s\f[B]\f[R], \f[B]\f[CB]--standalone\f[B]\f[R]
739−Produce output with an appropriate header and footer (e.g.\ a standalone
740−HTML, LaTeX, TEI, or RTF file, not a fragment).
740+Produce output with an appropriate header and footer (e.g.
741+a standalone HTML, LaTeX, TEI, or RTF file, not a fragment).
741742This option is set automatically for \f[C]pdf\f[R], \f[C]epub\f[R],
742743\f[C]epub3\f[R], \f[C]fb2\f[R], \f[C]docx\f[R], and \f[C]odt\f[R]
743744output.
@@ -897,7 +898,8 @@ Implies \f[C]--standalone\f[R].
897898.TP
898899\f[B]\f[CB]-B\f[B]\f[R] \f[I]FILE\f[R], \f[B]\f[CB]--include-before-body=\f[B]\f[R]\f[I]FILE\f[R]|\f[I]URL\f[R]
899900Include contents of \f[I]FILE\f[R], verbatim, at the beginning of the
900−document body (e.g.\ after the \f[C]<body>\f[R] tag in HTML, or the
901+document body (e.g.
902+after the \f[C]<body>\f[R] tag in HTML, or the
901903\f[C]\[rs]begin{document}\f[R] command in LaTeX).
902904This can be used to include navigation bars or banners in HTML
903905documents.
@@ -923,17 +925,19 @@ Note that, if \f[C]--resource-path\f[R] is specified, the working
923925directory must be explicitly listed or it will not be searched.
924926For example: \f[C]--resource-path=.:test\f[R] will search the working
925927directory and the \f[C]test\f[R] subdirectory, in that order.
926−This option can be used repeatedly.
927−Search path components that come later on the command line will be
928−searched before those that come earlier, so
929−\f[C]--resource-path foo:bar --resource-path baz:bim\f[R] is equivalent
930−to \f[C]--resource-path baz:bim:foo:bar\f[R].
928+.RS
929+.PP
930+\f[C]--resource-path\f[R] only has an effect if (a) the output format
931+embeds images (for example, \f[C]docx\f[R], \f[C]pdf\f[R], or
932+\f[C]html\f[R] with \f[C]--self-contained\f[R]) or (b) it is used
933+together with \f[C]--extract-media\f[R].
934+.RE
931935.TP
932936\f[B]\f[CB]--request-header=\f[B]\f[R]\f[I]NAME\f[R]\f[B]\f[CB]:\f[B]\f[R]\f[I]VAL\f[R]
933937Set the request header \f[I]NAME\f[R] to the value \f[I]VAL\f[R] when
934938making HTTP requests (for example, when a URL is given on the command
935939line, or when resources used in a document must be downloaded).
936−If you\[cq]re behind a proxy, you also need to set the environment
940+If you\[aq]re behind a proxy, you also need to set the environment
937941variable \f[C]http_proxy\f[R] to \f[C]http://...\f[R].
938942.TP
939943\f[B]\f[CB]--no-check-certificate\f[B]\f[R]
@@ -947,7 +951,7 @@ Produce a standalone HTML file with no external dependencies, using
947951\f[C]data:\f[R] URIs to incorporate the contents of linked scripts,
948952stylesheets, images, and videos.
949953Implies \f[C]--standalone\f[R].
950−The resulting file should be \[lq]self-contained,\[rq] in the sense that
954+The resulting file should be \[dq]self-contained,\[dq] in the sense that
951955it needs no external files and no net access to be displayed properly by
952956a browser.
953957This option works only with HTML output formats, including
@@ -963,14 +967,12 @@ left alone; the documents they link to will not be incorporated in the
963967document.
964968Limitation: resources that are loaded dynamically through JavaScript
965969cannot be incorporated; as a result, \f[C]--self-contained\f[R] does not
966−work with \f[C]--mathjax\f[R], and some advanced features (e.g.\ zoom or
967−speaker notes) may not work in an offline \[lq]self-contained\[rq]
968−\f[C]reveal.js\f[R] slide show.
970+work with \f[C]--mathjax\f[R], and some advanced features (e.g.
971+zoom or speaker notes) may not work in an offline
972+\[dq]self-contained\[dq] \f[C]reveal.js\f[R] slide show.
969973.TP
970974\f[B]\f[CB]--html-q-tags\f[B]\f[R]
971975Use \f[C]<q>\f[R] tags for quotes in HTML.
972−(This option only has an effect if the \f[C]smart\f[R] extension is
973−enabled for the input format used.)
974976.TP
975977\f[B]\f[CB]--ascii\f[B]\f[R]
976978Use only ASCII characters in output.
@@ -988,24 +990,21 @@ By default inline links are used.
988990The placement of link references is affected by the
989991\f[C]--reference-location\f[R] option.
990992.TP
991−\f[B]\f[CB]--reference-location=block\f[B]\f[R]|\f[B]\f[CB]section\f[B]\f[R]|\f[B]\f[CB]document\f[B]\f[R]
993+\f[B]\f[CB]--reference-location = block\f[B]\f[R]|\f[B]\f[CB]section\f[B]\f[R]|\f[B]\f[CB]document\f[B]\f[R]
992994Specify whether footnotes (and references, if \f[C]reference-links\f[R]
993995is set) are placed at the end of the current (top-level) block, the
994996current section, or the document.
995997The default is \f[C]document\f[R].
996998Currently only affects the markdown writer.
997999.TP
998−\f[B]\f[CB]--markdown-headings=setext\f[B]\f[R]|\f[B]\f[CB]atx\f[B]\f[R]
999−Specify whether to use ATX-style (\f[C]#\f[R]-prefixed) or Setext-style
1000−(underlined) headings for level 1 and 2 headings in Markdown output.
1001−(The default is \f[C]atx\f[R].) ATX-style headings are always used for
1002−levels 3+.
1003−This option also affects Markdown cells in \f[C]ipynb\f[R] output.
1004−.TP
10051000\f[B]\f[CB]--atx-headers\f[B]\f[R]
1006−\f[I]Deprecated synonym for \f[CI]--markdown-headings=atx\f[I].\f[R]
1001+Use ATX-style headings in Markdown output.
1002+The default is to use setext-style headings for levels 1 to 2, and then
1003+ATX headings.
1004+(Note: for \f[C]gfm\f[R] output, ATX headings are always used.) This
1005+option also affects markdown cells in \f[C]ipynb\f[R] output.
10071006.TP
1008−\f[B]\f[CB]--top-level-division=default\f[B]\f[R]|\f[B]\f[CB]section\f[B]\f[R]|\f[B]\f[CB]chapter\f[B]\f[R]|\f[B]\f[CB]part\f[B]\f[R]
1007+\f[B]\f[CB]--top-level-division=[default|section|chapter|part]\f[B]\f[R]
10091008Treat top-level headings as the given division type in LaTeX, ConTeXt,
10101009DocBook, and TEI output.
10111010The hierarchy order is part, chapter, then section; all headings are
@@ -1022,22 +1021,21 @@ become \f[C]\[rs]part{..}\f[R], while second-level headings remain as
10221021their default type.
10231022.TP
10241023\f[B]\f[CB]-N\f[B]\f[R], \f[B]\f[CB]--number-sections\f[B]\f[R]
1025−Number section headings in LaTeX, ConTeXt, HTML, Docx, ms, or EPUB
1026−output.
1024+Number section headings in LaTeX, ConTeXt, HTML, Docx, or EPUB output.
10271025By default, sections are not numbered.
10281026Sections with class \f[C]unnumbered\f[R] will never be numbered, even if
10291027\f[C]--number-sections\f[R] is specified.
10301028.TP
1031−\f[B]\f[CB]--number-offset=\f[B]\f[R]\f[I]NUMBER\f[R][\f[B]\f[CB],\f[B]\f[R]\f[I]NUMBER\f[R]\f[B]\f[CB],\f[B]\f[R]\f[I]\&...\f[R]]
1029+\f[B]\f[CB]--number-offset=\f[B]\f[R]\f[I]NUMBER\f[R][\f[B]\f[CB],\f[B]\f[R]\f[I]NUMBER\f[R]\f[B]\f[CB],\f[B]\f[R]\f[I]...\f[R]]
10321030Offset for section headings in HTML output (ignored in other output
10331031formats).
10341032The first number is added to the section number for top-level headings,
10351033the second for second-level headings, and so on.
10361034So, for example, if you want the first top-level heading in your
1037−document to be numbered \[lq]6\[rq], specify
1035+document to be numbered \[dq]6\[dq], specify
10381036\f[C]--number-offset=5\f[R].
10391037If your document starts with a level-2 heading which you want to be
1040−numbered \[lq]1.5\[rq], specify \f[C]--number-offset=1,4\f[R].
1038+numbered \[dq]1.5\[dq], specify \f[C]--number-offset=1,4\f[R].
10411039Offsets are 0 by default.
10421040Implies \f[C]--number-sections\f[R].
10431041.TP
@@ -1336,7 +1334,7 @@ body { font-family: \[dq]DejaVuSans\[dq]; }
13361334.TP
13371335\f[B]\f[CB]--epub-chapter-level=\f[B]\f[R]\f[I]NUMBER\f[R]
13381336Specify the heading level at which to split the EPUB into separate
1339−\[lq]chapter\[rq] files.
1337+\[dq]chapter\[dq] files.
13401338The default is to split into chapters at level-1 headings.
13411339This option only affects the internal composition of the EPUB, not the
13421340way chapters and sections are displayed to users.
@@ -1388,69 +1386,47 @@ introduction to PDF generation from HTML/CSS.)
13881386Use the given string as a command-line argument to the
13891387\f[C]pdf-engine\f[R].
13901388For example, to use a persistent directory \f[C]foo\f[R] for
1391−\f[C]latexmk\f[R]\[cq]s auxiliary files, use
1389+\f[C]latexmk\f[R]\[aq]s auxiliary files, use
13921390\f[C]--pdf-engine-opt=-outdir=foo\f[R].
13931391Note that no check for duplicate options is done.
13941392.SS Citation rendering
13951393.TP
1396−\f[B]\f[CB]-C\f[B]\f[R], \f[B]\f[CB]--citeproc\f[B]\f[R]
1397−Process the citations in the file, replacing them with rendered
1398−citations and adding a bibliography.
1399−Citation processing will not take place unless bibliographic data is
1400−supplied, either through an external file specified using the
1401−\f[C]--bibliography\f[R] option or the \f[C]bibliography\f[R] field in
1402−metadata, or via a \f[C]references\f[R] section in metadata containing a
1403−list of citations in CSL YAML format with Markdown formatting.
1404−The style is controlled by a CSL stylesheet specified using the
1405−\f[C]--csl\f[R] option or the \f[C]csl\f[R] field in metadata.
1406−(If no stylesheet is specified, the \f[C]chicago-author-date\f[R] style
1407−will be used by default.) The citation processing transformation may be
1408−applied before or after filters or Lua filters (see \f[C]--filter\f[R],
1409−\f[C]--lua-filter\f[R]): these transformations are applied in the order
1410−they appear on the command line.
1411−For more information, see the section on Citations.
1412−.TP
14131394\f[B]\f[CB]--bibliography=\f[B]\f[R]\f[I]FILE\f[R]
1414−Set the \f[C]bibliography\f[R] field in the document\[cq]s metadata to
1415−\f[I]FILE\f[R], overriding any value set in the metadata.
1395+Set the \f[C]bibliography\f[R] field in the document\[aq]s metadata to
1396+\f[I]FILE\f[R], overriding any value set in the metadata, and process
1397+citations using \f[C]pandoc-citeproc\f[R].
1398+(This is equivalent to
1399+\f[C]--metadata bibliography=FILE --filter pandoc-citeproc\f[R].) If
1400+\f[C]--natbib\f[R] or \f[C]--biblatex\f[R] is also supplied,
1401+\f[C]pandoc-citeproc\f[R] is not used, making this equivalent to
1402+\f[C]--metadata bibliography=FILE\f[R].
14161403If you supply this argument multiple times, each \f[I]FILE\f[R] will be
14171404added to bibliography.
1418−If \f[I]FILE\f[R] is a URL, it will be fetched via HTTP.
1419−If \f[I]FILE\f[R] is not found relative to the working directory, it
1420−will be sought in the resource path (see \f[C]--resource-path\f[R]).
14211405.TP
14221406\f[B]\f[CB]--csl=\f[B]\f[R]\f[I]FILE\f[R]
1423−Set the \f[C]csl\f[R] field in the document\[cq]s metadata to
1407+Set the \f[C]csl\f[R] field in the document\[aq]s metadata to
14241408\f[I]FILE\f[R], overriding any value set in the metadata.
1425−(This is equivalent to \f[C]--metadata csl=FILE\f[R].) If \f[I]FILE\f[R]
1426−is a URL, it will be fetched via HTTP.
1427−If \f[I]FILE\f[R] is not found relative to the working directory, it
1428−will be sought in the resource path (see \f[C]--resource-path\f[R]) and
1429−finally in the \f[C]csl\f[R] subdirectory of the pandoc user data
1430−directory.
1409+(This is equivalent to \f[C]--metadata csl=FILE\f[R].) This option is
1410+only relevant with \f[C]pandoc-citeproc\f[R].
14311411.TP
14321412\f[B]\f[CB]--citation-abbreviations=\f[B]\f[R]\f[I]FILE\f[R]
1433−Set the \f[C]citation-abbreviations\f[R] field in the document\[cq]s
1413+Set the \f[C]citation-abbreviations\f[R] field in the document\[aq]s
14341414metadata to \f[I]FILE\f[R], overriding any value set in the metadata.
14351415(This is equivalent to
1436−\f[C]--metadata citation-abbreviations=FILE\f[R].) If \f[I]FILE\f[R] is
1437−a URL, it will be fetched via HTTP.
1438−If \f[I]FILE\f[R] is not found relative to the working directory, it
1439−will be sought in the resource path (see \f[C]--resource-path\f[R]) and
1440−finally in the \f[C]csl\f[R] subdirectory of the pandoc user data
1441−directory.
1416+\f[C]--metadata citation-abbreviations=FILE\f[R].) This option is only
1417+relevant with \f[C]pandoc-citeproc\f[R].
14421418.TP
14431419\f[B]\f[CB]--natbib\f[B]\f[R]
14441420Use \f[C]natbib\f[R] for citations in LaTeX output.
1445−This option is not for use with the \f[C]--citeproc\f[R] option or with
1446−PDF output.
1421+This option is not for use with the \f[C]pandoc-citeproc\f[R] filter or
1422+with PDF output.
14471423It is intended for use in producing a LaTeX file that can be processed
14481424with \f[C]bibtex\f[R].
14491425.TP
14501426\f[B]\f[CB]--biblatex\f[B]\f[R]
14511427Use \f[C]biblatex\f[R] for citations in LaTeX output.
1452−This option is not for use with the \f[C]--citeproc\f[R] option or with
1453−PDF output.
1428+This option is not for use with the \f[C]pandoc-citeproc\f[R] filter or
1429+with PDF output.
14541430It is intended for use in producing a LaTeX file that can be processed
14551431with \f[C]bibtex\f[R] or \f[C]biber\f[R].
14561432.SS Math rendering in HTML
@@ -1491,7 +1467,7 @@ For SVG images you can for example use
14911467If no URL is specified, the CodeCogs URL generating PNGs will be used
14921468(\f[C]https://latex.codecogs.com/png.latex?\f[R]).
14931469Note: the \f[C]--webtex\f[R] option will affect Markdown output as well
1494−as HTML, which is useful if you\[cq]re targeting a version of Markdown
1470+as HTML, which is useful if you\[aq]re targeting a version of Markdown
14951471without native math support.
14961472.TP
14971473\f[B]\f[CB]--katex\f[B]\f[R][\f[B]\f[CB]=\f[B]\f[R]\f[I]URL\f[R]]
@@ -1504,16 +1480,16 @@ inserted.
15041480.TP
15051481\f[B]\f[CB]--gladtex\f[B]\f[R]
15061482Enclose TeX math in \f[C]<eq>\f[R] tags in HTML output.
1507−The resulting HTML can then be processed by GladTeX to produce SVG
1508−images of the typeset formulas and an HTML file with these images
1509−embedded.
1483+The resulting HTML can then be processed by GladTeX to produce images of
1484+the typeset formulas and an HTML file with links to these images.
1485+So, the procedure is:
15101486.RS
15111487.IP
15121488.nf
15131489\f[C]
15141490pandoc -s --gladtex input.md -o myfile.htex
1515−gladtex -d image_dir myfile.htex
1516−# produces myfile.html and images in image_dir
1491+gladtex -d myfile-images myfile.htex
1492+# produces myfile.html and images in myfile-images
15171493\f[R]
15181494.fi
15191495.RE
@@ -1602,11 +1578,6 @@ T}@T{
16021578PandocUnsupportedExtensionError
16031579T}
16041580T{
1605−24
1606−T}@T{
1607−PandocCiteprocError
1608−T}
1609−T{
1610158131
16111582T}@T{
16121583PandocEpubSubdirectoryError
@@ -1617,11 +1588,6 @@ T}@T{
16171588PandocPDFError
16181589T}
16191590T{
1620−44
1621−T}@T{
1622−PandocXMLError
1623−T}
1624−T{
1625159147
16261592T}@T{
16271593PandocPDFProgramNotFoundError
@@ -1682,11 +1648,6 @@ T}@T{
16821648PandocIpynbDecodingError
16831649T}
16841650T{
1685−94
1686−T}@T{
1687−PandocUnsupportedCharsetError
1688−T}
1689−T{
1690165197
16911652T}@T{
16921653PandocCouldNotFindDataFileError
@@ -1719,16 +1680,6 @@ input-files:
17191680- content.md
17201681# or you may use input-file: with a single value
17211682
1722−# Include options from the specified defaults files.
1723−# The files will be searched for first in the working directory
1724−# and then in the defaults subdirectory of the user data directory.
1725−# The files are included in the same order in which they appear in
1726−# the list. Options specified in this defaults file always have
1727−# priority over the included ones.
1728−defaults:
1729−- defsA
1730−- defsB
1731−
17321683template: letter
17331684standalone: true
17341685self-contained: false
@@ -1756,24 +1707,11 @@ include-after-body: []
17561707include-in-header: []
17571708resource-path: [\[dq].\[dq]]
17581709
1759−# turn on built-in citation processing. Note that if you need
1760−# control over when the citeproc processing is done relative
1761−# to other filters, you should instead use \[ga]citeproc\[ga] in the
1762−# list of \[ga]filters\[ga] (see below).
1763−citeproc: true
1764−csl: ieee
1765−bibliography:
1766−- foobar.bib
1767−- barbaz.json
1768−citation-abbreviations: abbrevs.json
1769−
1770−# Filters will be assumed to be Lua filters if they have
1710+# filters will be assumed to be Lua filters if they have
17711711# the .lua extension, and json filters otherwise. But
1772−# the filter type can also be specified explicitly, as shown.
1773−# Filters are run in the order specified.
1774−# To include the built-in citeproc filter, use either \[ga]citeproc\[ga]
1775−# or \[ga]{type: citeproc}\[ga].
1712+# the filter type can also be specified explicitly, as shown:
17761713filters:
1714+- pandoc-citeproc
17771715- wordcount.lua
17781716- type: json
17791717 path: foo.lua
@@ -1786,11 +1724,8 @@ data-dir:
17861724verbosity: INFO
17871725log-file: log.json
17881726
1789−# citeproc, natbib, or biblatex. This only affects LaTeX
1790−# output. If you want to use citeproc to format citations,
1791−# you should also set \[aq]citeproc: true\[aq] (see above).
1727+# citeproc, natbib, or biblatex
17921728cite-method: citeproc
1793−
17941729# part, chapter, section, or default:
17951730top-level-division: chapter
17961731abbreviations:
@@ -1859,7 +1794,7 @@ epub-cover-image: cover.jpg
18591794reference-links: true
18601795# block, section, or document
18611796reference-location: block
1862−markdown-headings: setext
1797+atx-headers: false
18631798
18641799# accept, reject, or all
18651800track-changes: accept
@@ -1891,38 +1826,6 @@ verbosity: INFO
18911826\f[R]
18921827.fi
18931828.PP
1894−In fields that expect a file path (or list of file paths), the following
1895−syntax may be used to interpolate environment variables:
1896−.IP
1897−.nf
1898−\f[C]
1899−csl: ${HOME}/mycsldir/special.csl
1900−\f[R]
1901−.fi
1902−.PP
1903−\f[C]${USERDATA}\f[R] may also be used; this will always resolve to the
1904−user data directory that is current when the defaults file is parsed,
1905−regardless of the setting of the environment variable
1906−\f[C]USERDATA\f[R].
1907−.PP
1908−\f[C]${.}\f[R] will resolve to the directory containing the default file
1909−itself.
1910−This allows you to refer to resources contained in that directory:
1911−.IP
1912−.nf
1913−\f[C]
1914−epub-cover-image: ${.}/cover.jpg
1915−epub-metadata: ${.}/meta.xml
1916−resource-path:
1917−- . # the working directory from which pandoc is run
1918−- ${.}/images # the images subdirectory of the directory
1919− # containing this defaults file
1920−\f[R]
1921−.fi
1922−.PP
1923−This environment variable interpolation syntax \f[I]only\f[R] works in
1924−fields that expect file paths.
1925−.PP
19261829Default files can be placed in the \f[C]defaults\f[R] subdirectory of
19271830the user data directory and used from any directory.
19281831For example, one could create a file specifying defaults for writing
@@ -1979,10 +1882,10 @@ arbitrary information at any point in the file.
19791882They may be set at the command line using the \f[C]-V/--variable\f[R]
19801883option.
19811884If a variable is not set, pandoc will look for the key in the
1982−document\[cq]s metadata, which can be set using either YAML metadata
1885+document\[aq]s metadata, which can be set using either YAML metadata
19831886blocks or with the \f[C]-M/--metadata\f[R] option.
19841887In addition, some variables are given default values by pandoc.
1985−See Variables below for a list of variables used in pandoc\[cq]s default
1888+See Variables below for a list of variables used in pandoc\[aq]s default
19861889templates.
19871890.PP
19881891If you use custom templates, you may need to revise them as pandoc
@@ -1999,8 +1902,8 @@ be treated as a comment and omitted from the output.
19991902.SS Delimiters
20001903.PP
20011904To mark variables and control structures in the template, either
2002−\f[C]$\f[R]\&...\f[C]$\f[R] or \f[C]${\f[R]\&...\f[C]}\f[R] may be used
2003−as delimiters.
1905+\f[C]$\f[R]...\f[C]$\f[R] or \f[C]${\f[R]...\f[C]}\f[R] may be used as
1906+delimiters.
20041907The styles may also be mixed in the same template, but the opening and
20051908closing delimiter must match in each case.
20061909The opening delimiter may be followed by one or more spaces or tabs,
@@ -2182,9 +2085,9 @@ ${ styles.html() }
21822085\f[R]
21832086.fi
21842087.PP
2185−(If a partial is not found in the directory of the template and the
2186−template path is given as a relative path, it will also be sought in the
2187−\f[C]templates\f[R] subdirectory of the user data directory.)
2088+(If a partial is not found in the directory of the template, it will
2089+also be sought in the \f[C]templates\f[R] subdirectory of the user data
2090+directory.)
21882091.PP
21892092Partials may optionally be applied to variables using a colon:
21902093.IP
@@ -2233,7 +2136,7 @@ an explicit \f[C]for\f[R] loop) cannot contain interpolated variables or
22332136other template directives.
22342137.SS Nesting
22352138.PP
2236−To ensure that content is \[lq]nested,\[rq] that is, subsequent lines
2139+To ensure that content is \[dq]nested,\[dq] that is, subsequent lines
22372140indented, use the \f[C]\[ha]\f[R] directive:
22382141.IP
22392142.nf
@@ -2275,7 +2178,7 @@ will produce
22752178.PP
22762179If a variable occurs by itself on a line, preceded by whitespace and not
22772180followed by further text or directives on the same line, and the
2278−variable\[cq]s value contains multiple lines, it will be nested
2181+variable\[aq]s value contains multiple lines, it will be nested
22792182automatically.
22802183.SS Breakable spaces
22812184.PP
@@ -2417,8 +2320,7 @@ including a title block in the document itself, you can set the
24172320\f[C]title-meta\f[R], \f[C]author-meta\f[R], and \f[C]date-meta\f[R]
24182321variables.
24192322(By default these are set automatically, based on \f[C]title\f[R],
2420−\f[C]author\f[R], and \f[C]date\f[R].) The page title in HTML is set by
2421−\f[C]pagetitle\f[R], which is equal to \f[C]title\f[R] by default.
2323+\f[C]author\f[R], and \f[C]date\f[R].)
24222324.RE
24232325.TP
24242326\f[B]\f[CB]subtitle\f[B]\f[R]
@@ -2508,81 +2410,13 @@ For bidirectional documents, native pandoc \f[C]span\f[R]s and
25082410\f[C]div\f[R]s with the \f[C]dir\f[R] attribute (value \f[C]rtl\f[R] or
25092411\f[C]ltr\f[R]) can be used to override the base direction in some output
25102412formats.
2511−This may not always be necessary if the final renderer (e.g.\ the
2512−browser, when generating HTML) supports the Unicode Bidirectional
2413+This may not always be necessary if the final renderer (e.g.
2414+the browser, when generating HTML) supports the Unicode Bidirectional
25132415Algorithm.
25142416.PP
25152417When using LaTeX for bidirectional documents, only the \f[C]xelatex\f[R]
25162418engine is fully supported (use \f[C]--pdf-engine=xelatex\f[R]).
25172419.RE
2518−.SS Variables for HTML
2519−.TP
2520−\f[B]\f[CB]document-css\f[B]\f[R]
2521−Enables inclusion of most of the CSS in the \f[C]styles.html\f[R]
2522−partial (have a look with
2523−\f[C]pandoc --print-default-data-file=templates/styles.html\f[R]).
2524−Unless you use \f[C]--css\f[R], this variable is set to \f[C]true\f[R]
2525−by default.
2526−You can disable it with e.g.\ \f[C]pandoc -M document-css=false\f[R].
2527−.TP
2528−\f[B]\f[CB]mainfont\f[B]\f[R]
2529−sets the CSS \f[C]font-family\f[R] property on the \f[C]html\f[R]
2530−element.
2531−.TP
2532−\f[B]\f[CB]fontsize\f[B]\f[R]
2533−sets the base CSS \f[C]font-size\f[R], which you\[cq]d usually set to
2534−e.g.\ \f[C]20px\f[R], but it also accepts \f[C]pt\f[R] (12pt = 16px in
2535−most browsers).
2536−.TP
2537−\f[B]\f[CB]fontcolor\f[B]\f[R]
2538−sets the CSS \f[C]color\f[R] property on the \f[C]html\f[R] element.
2539−.TP
2540−\f[B]\f[CB]linkcolor\f[B]\f[R]
2541−sets the CSS \f[C]color\f[R] property on all links.
2542−.TP
2543−\f[B]\f[CB]monofont\f[B]\f[R]
2544−sets the CSS \f[C]font-family\f[R] property on \f[C]code\f[R] elements.
2545−.TP
2546−\f[B]\f[CB]monobackgroundcolor\f[B]\f[R]
2547−sets the CSS \f[C]background-color\f[R] property on \f[C]code\f[R]
2548−elements and adds extra padding.
2549−.TP
2550−\f[B]\f[CB]linestretch\f[B]\f[R]
2551−sets the CSS \f[C]line-height\f[R] property on the \f[C]html\f[R]
2552−element, which is preferred to be unitless.
2553−.TP
2554−\f[B]\f[CB]backgroundcolor\f[B]\f[R]
2555−sets the CSS \f[C]background-color\f[R] property on the \f[C]html\f[R]
2556−element.
2557−.TP
2558−\f[B]\f[CB]margin-left\f[B]\f[R], \f[B]\f[CB]margin-right\f[B]\f[R], \f[B]\f[CB]margin-top\f[B]\f[R], \f[B]\f[CB]margin-bottom\f[B]\f[R]
2559−sets the corresponding CSS \f[C]padding\f[R] properties on the
2560−\f[C]body\f[R] element.
2561−.PP
2562−To override or extend some CSS for just one document, include for
2563−example:
2564−.IP
2565−.nf
2566−\f[C]
2567−---
2568−header-includes: |
2569− <style>
2570− blockquote {
2571− font-style: italic;
2572− }
2573− tr.even {
2574− background-color: #f0f0f0;
2575− }
2576− td, th {
2577− padding: 0.5em 2em 0.5em 0.5em;
2578− }
2579− tbody {
2580− border-bottom: none;
2581− }
2582− </style>
2583−---
2584−\f[R]
2585−.fi
25862420.SS Variables for HTML math
25872421.TP
25882422\f[B]\f[CB]classoption\f[B]\f[R]
@@ -2590,10 +2424,11 @@ when using KaTeX, you can render display math equations flush left using
25902424YAML metadata or with \f[C]-M classoption=fleqn\f[R].
25912425.SS Variables for HTML slides
25922426.PP
2593−These affect HTML output when [producing slide shows with pandoc].
2594−.TP
2595−\f[B]\f[CB]institute\f[B]\f[R]
2596−author affiliations: can be a list when there are multiple authors
2427+These affect HTML output when producing slide shows with pandoc.
2428+.PP
2429+All reveal.js configuration options are available as variables.
2430+To turn off boolean flags that default to true in reveal.js, use
2431+\f[C]0\f[R].
25972432.TP
25982433\f[B]\f[CB]revealjs-url\f[B]\f[R]
25992434base URL for reveal.js documents (defaults to
@@ -2612,10 +2447,6 @@ base URL for Slideous documents (defaults to \f[C]slideous\f[R])
26122447\f[B]\f[CB]title-slide-attributes\f[B]\f[R]
26132448additional attributes for the title slide of reveal.js slide shows.
26142449See background in reveal.js and beamer for an example.
2615−.PP
2616−All reveal.js configuration options are available as variables.
2617−To turn off boolean flags that default to true in reveal.js, use
2618−\f[C]0\f[R].
26192450.SS Variables for Beamer slides
26202451.PP
26212452These variables change the appearance of PDF slides using
@@ -2644,7 +2475,7 @@ navigation symbols; other valid values are \f[C]frame\f[R],
26442475\f[C]vertical\f[R], and \f[C]horizontal\f[R])
26452476.TP
26462477\f[B]\f[CB]section-titles\f[B]\f[R]
2647−enables \[lq]title pages\[rq] for new sections (default is true)
2478+enables \[dq]title pages\[dq] for new sections (default is true)
26482479.TP
26492480\f[B]\f[CB]theme\f[B]\f[R], \f[B]\f[CB]colortheme\f[B]\f[R], \f[B]\f[CB]fonttheme\f[B]\f[R], \f[B]\f[CB]innertheme\f[B]\f[R], \f[B]\f[CB]outertheme\f[B]\f[R]
26502481beamer themes
@@ -2696,8 +2527,8 @@ header-includes: |
26962527.RE
26972528.TP
26982529\f[B]\f[CB]classoption\f[B]\f[R]
2699−option for document class, e.g.\ \f[C]oneside\f[R]; repeat for multiple
2700−options:
2530+option for document class, e.g.
2531+\f[C]oneside\f[R]; repeat for multiple options:
27012532.RS
27022533.IP
27032534.nf
@@ -2718,8 +2549,8 @@ document class: usually one of the standard classes, \f[C]article\f[R],
27182549default to smaller margins; or \f[C]memoir\f[R]
27192550.TP
27202551\f[B]\f[CB]geometry\f[B]\f[R]
2721−option for \f[C]geometry\f[R] package, e.g.\ \f[C]margin=1in\f[R];
2722−repeat for multiple options:
2552+option for \f[C]geometry\f[R] package, e.g.
2553+\f[C]margin=1in\f[R]; repeat for multiple options:
27232554.RS
27242555.IP
27252556.nf
@@ -2735,8 +2566,8 @@ geometry:
27352566.RE
27362567.TP
27372568\f[B]\f[CB]hyperrefoptions\f[B]\f[R]
2738−option for \f[C]hyperref\f[R] package, e.g.\ \f[C]linktoc=all\f[R];
2739−repeat for multiple options:
2569+option for \f[C]hyperref\f[R] package, e.g.
2570+\f[C]linktoc=all\f[R]; repeat for multiple options:
27402571.RS
27412572.IP
27422573.nf
@@ -2752,13 +2583,12 @@ hyperrefoptions:
27522583.RE
27532584.TP
27542585\f[B]\f[CB]indent\f[B]\f[R]
2755−if true, pandoc will use document class settings for indentation (the
2756−default LaTeX template otherwise removes indentation and adds space
2757−between paragraphs)
2586+uses document class settings for indentation (the default LaTeX template
2587+otherwise removes indentation and adds space between paragraphs)
27582588.TP
27592589\f[B]\f[CB]linestretch\f[B]\f[R]
2760−adjusts line spacing using the \f[C]setspace\f[R] package,
2761−e.g.\ \f[C]1.25\f[R], \f[C]1.5\f[R]
2590+adjusts line spacing using the \f[C]setspace\f[R] package, e.g.
2591+\f[C]1.25\f[R], \f[C]1.5\f[R]
27622592.TP
27632593\f[B]\f[CB]margin-left\f[B]\f[R], \f[B]\f[CB]margin-right\f[B]\f[R], \f[B]\f[CB]margin-top\f[B]\f[R], \f[B]\f[CB]margin-bottom\f[B]\f[R]
27642594sets margins if \f[C]geometry\f[R] is not used (otherwise
@@ -2770,7 +2600,8 @@ control \f[C]\[rs]pagestyle{}\f[R]: the default article class supports
27702600numbers), and \f[C]headings\f[R] (section titles in running heads)
27712601.TP
27722602\f[B]\f[CB]papersize\f[B]\f[R]
2773−paper size, e.g.\ \f[C]letter\f[R], \f[C]a4\f[R]
2603+paper size, e.g.
2604+\f[C]letter\f[R], \f[C]a4\f[R]
27742605.TP
27752606\f[B]\f[CB]secnumdepth\f[B]\f[R]
27762607numbering depth for sections (with \f[C]--number-sections\f[R] option or
@@ -2895,32 +2726,35 @@ list of options for natbib
28952726Pandoc uses these variables when creating a PDF with ConTeXt.
28962727.TP
28972728\f[B]\f[CB]fontsize\f[B]\f[R]
2898−font size for body text (e.g.\ \f[C]10pt\f[R], \f[C]12pt\f[R])
2729+font size for body text (e.g.
2730+\f[C]10pt\f[R], \f[C]12pt\f[R])
28992731.TP
29002732\f[B]\f[CB]headertext\f[B]\f[R], \f[B]\f[CB]footertext\f[B]\f[R]
29012733text to be placed in running header or footer (see ConTeXt Headers and
29022734Footers); repeat up to four times for different placement
29032735.TP
29042736\f[B]\f[CB]indenting\f[B]\f[R]
2905−controls indentation of paragraphs, e.g.\ \f[C]yes,small,next\f[R] (see
2906−ConTeXt Indentation); repeat for multiple options
2737+controls indentation of paragraphs, e.g.
2738+\f[C]yes,small,next\f[R] (see ConTeXt Indentation); repeat for multiple
2739+options
29072740.TP
29082741\f[B]\f[CB]interlinespace\f[B]\f[R]
2909−adjusts line spacing, e.g.\ \f[C]4ex\f[R] (using
2910−\f[C]setupinterlinespace\f[R]); repeat for multiple options
2742+adjusts line spacing, e.g.
2743+\f[C]4ex\f[R] (using \f[C]setupinterlinespace\f[R]); repeat for multiple
2744+options
29112745.TP
29122746\f[B]\f[CB]layout\f[B]\f[R]
29132747options for page margins and text arrangement (see ConTeXt Layout);
29142748repeat for multiple options
29152749.TP
29162750\f[B]\f[CB]linkcolor\f[B]\f[R], \f[B]\f[CB]contrastcolor\f[B]\f[R]
2917−color for links outside and inside a page, e.g.\ \f[C]red\f[R],
2918−\f[C]blue\f[R] (see ConTeXt Color)
2751+color for links outside and inside a page, e.g.
2752+\f[C]red\f[R], \f[C]blue\f[R] (see ConTeXt Color)
29192753.TP
29202754\f[B]\f[CB]linkstyle\f[B]\f[R]
2921−typeface style for links, e.g.\ \f[C]normal\f[R], \f[C]bold\f[R],
2922−\f[C]slanted\f[R], \f[C]boldslanted\f[R], \f[C]type\f[R], \f[C]cap\f[R],
2923−\f[C]small\f[R]
2755+typeface style for links, e.g.
2756+\f[C]normal\f[R], \f[C]bold\f[R], \f[C]slanted\f[R],
2757+\f[C]boldslanted\f[R], \f[C]type\f[R], \f[C]cap\f[R], \f[C]small\f[R]
29242758.TP
29252759\f[B]\f[CB]lof\f[B]\f[R], \f[B]\f[CB]lot\f[B]\f[R]
29262760include list of figures, list of tables
@@ -2938,13 +2772,16 @@ page number style and location (using \f[C]setuppagenumbering\f[R]);
29382772repeat for multiple options
29392773.TP
29402774\f[B]\f[CB]papersize\f[B]\f[R]
2941−paper size, e.g.\ \f[C]letter\f[R], \f[C]A4\f[R], \f[C]landscape\f[R]
2942−(see ConTeXt Paper Setup); repeat for multiple options
2775+paper size, e.g.
2776+\f[C]letter\f[R], \f[C]A4\f[R], \f[C]landscape\f[R] (see ConTeXt Paper
2777+Setup); repeat for multiple options
29432778.TP
29442779\f[B]\f[CB]pdfa\f[B]\f[R]
29452780adds to the preamble the setup necessary to generate PDF/A of the type
2946−specified, e.g.\ \f[C]1a:2005\f[R], \f[C]2a\f[R].
2947−If no type is specified (i.e.\ the value is set to True, by e.g.
2781+specified, e.g.
2782+\f[C]1a:2005\f[R], \f[C]2a\f[R].
2783+If no type is specified (i.e.
2784+the value is set to True, by e.g.
29482785\f[C]--metadata=pdfa\f[R] or \f[C]pdfa: true\f[R] in a YAML metadata
29492786block), \f[C]1b:2005\f[R] will be used as default, for reasons of
29502787backwards compatibility.
@@ -2959,7 +2796,8 @@ See also ConTeXt PDFA for more details.
29592796.TP
29602797\f[B]\f[CB]pdfaiccprofile\f[B]\f[R]
29612798when used in conjunction with \f[C]pdfa\f[R], specifies the ICC profile
2962−to use in the PDF, e.g.\ \f[C]default.cmyk\f[R].
2799+to use in the PDF, e.g.
2800+\f[C]default.cmyk\f[R].
29632801If left unspecified, \f[C]sRGB.icc\f[R] is used as default.
29642802May be repeated to include multiple profiles.
29652803Note that the profiles have to be available on the system.
@@ -2967,17 +2805,17 @@ They can be obtained from ConTeXt ICC Profiles.
29672805.TP
29682806\f[B]\f[CB]pdfaintent\f[B]\f[R]
29692807when used in conjunction with \f[C]pdfa\f[R], specifies the output
2970−intent for the colors,
2971−e.g.\ \f[C]ISO coated v2 300\[rs]letterpercent\[rs]space (ECI)\f[R] If
2972−left unspecified, \f[C]sRGB IEC61966-2.1\f[R] is used as default.
2808+intent for the colors, e.g.
2809+\f[C]ISO coated v2 300\[rs]letterpercent\[rs]space (ECI)\f[R] If left
2810+unspecified, \f[C]sRGB IEC61966-2.1\f[R] is used as default.
29732811.TP
29742812\f[B]\f[CB]toc\f[B]\f[R]
29752813include table of contents (can also be set using
29762814\f[C]--toc/--table-of-contents\f[R])
29772815.TP
29782816\f[B]\f[CB]whitespace\f[B]\f[R]
2979−spacing between paragraphs, e.g.\ \f[C]none\f[R], \f[C]small\f[R] (using
2980−\f[C]setupwhitespace\f[R])
2817+spacing between paragraphs, e.g.
2818+\f[C]none\f[R], \f[C]small\f[R] (using \f[C]setupwhitespace\f[R])
29812819.TP
29822820\f[B]\f[CB]includesource\f[B]\f[R]
29832821include all source documents as file attachments in the PDF file
@@ -3015,16 +2853,20 @@ section number in man pages
30152853.SS Variables for ms
30162854.TP
30172855\f[B]\f[CB]fontfamily\f[B]\f[R]
3018−font family (e.g.\ \f[C]T\f[R] or \f[C]P\f[R])
2856+font family (e.g.
2857+\f[C]T\f[R] or \f[C]P\f[R])
30192858.TP
30202859\f[B]\f[CB]indent\f[B]\f[R]
3021−paragraph indent (e.g.\ \f[C]2m\f[R])
2860+paragraph indent (e.g.
2861+\f[C]2m\f[R])
30222862.TP
30232863\f[B]\f[CB]lineheight\f[B]\f[R]
3024−line height (e.g.\ \f[C]12p\f[R])
2864+line height (e.g.
2865+\f[C]12p\f[R])
30252866.TP
30262867\f[B]\f[CB]pointsize\f[B]\f[R]
3027−point size (e.g.\ \f[C]10p\f[R])
2868+point size (e.g.
2869+\f[C]10p\f[R])
30282870.SS Variables set automatically
30292871.PP
30302872Pandoc sets these variables automatically in response to options or
@@ -3040,9 +2882,10 @@ in all HTML based formats (dzslides, epub, html, html4, html5, revealjs,
30402882s5, slideous, slidy).
30412883The recognized formats for \f[C]date\f[R] are: \f[C]mm/dd/yyyy\f[R],
30422884\f[C]mm/dd/yy\f[R], \f[C]yyyy-mm-dd\f[R] (ISO 8601),
3043−\f[C]dd MM yyyy\f[R] (e.g.\ either \f[C]02 Apr 2018\f[R] or
3044−\f[C]02 April 2018\f[R]), \f[C]MM dd, yyyy\f[R]
3045−(e.g.\ \f[C]Apr. 02, 2018\f[R] or
2885+\f[C]dd MM yyyy\f[R] (e.g.
2886+either \f[C]02 Apr 2018\f[R] or \f[C]02 April 2018\f[R]),
2887+\f[C]MM dd, yyyy\f[R] (e.g.
2888+\f[C]Apr. 02, 2018\f[R] or
30462889\f[C]April 02, 2018),\f[R]yyyy[mm[dd]]]\f[C](e.g.\f[R]20180402,
30472890\f[C]201804\f[R] or \f[C]2018\f[R]).
30482891.TP
@@ -3059,7 +2902,7 @@ contents specified by \f[C]-A/--include-after-body\f[R] (may have
30592902multiple values)
30602903.TP
30612904\f[B]\f[CB]meta-json\f[B]\f[R]
3062−JSON representation of all of the document\[cq]s metadata.
2905+JSON representation of all of the document\[aq]s metadata.
30632906Field values are transformed to the selected output format.
30642907.TP
30652908\f[B]\f[CB]numbersections\f[B]\f[R]
@@ -3087,7 +2930,8 @@ $endif$
30872930Similarly, \f[C]outputfile\f[R] can be \f[C]-\f[R] if output goes to the
30882931terminal.
30892932.PP
3090−If you need absolute paths, use e.g.\ \f[C]$curdir$/$sourcefile$\f[R].
2933+If you need absolute paths, use e.g.
2934+\f[C]$curdir$/$sourcefile$\f[R].
30912935.RE
30922936.TP
30932937\f[B]\f[CB]curdir\f[B]\f[R]
@@ -3108,12 +2952,12 @@ An extension can be enabled by adding \f[C]+EXTENSION\f[R] to the format
31082952name and disabled by adding \f[C]-EXTENSION\f[R].
31092953For example, \f[C]--from markdown_strict+footnotes\f[R] is strict
31102954Markdown with footnotes enabled, while
3111−\f[C]--from markdown-footnotes-pipe_tables\f[R] is pandoc\[cq]s Markdown
2955+\f[C]--from markdown-footnotes-pipe_tables\f[R] is pandoc\[aq]s Markdown
31122956without footnotes or pipe tables.
31132957.PP
31142958The markdown reader and writer make by far the most use of extensions.
31152959Extensions only used by them are therefore covered in the section
3116−Pandoc\[cq]s Markdown below (See Markdown variants for
2960+Pandoc\[aq]s Markdown below (See Markdown variants for
31172961\f[C]commonmark\f[R] and \f[C]gfm\f[R].) In the following, extensions
31182962that also work for other formats are covered.
31192963.PP
@@ -3126,7 +2970,7 @@ Markdown cells in Jupyter notebooks (as do command-line options like
31262970Interpret straight quotes as curly quotes, \f[C]---\f[R] as em-dashes,
31272971\f[C]--\f[R] as en-dashes, and \f[C]...\f[R] as ellipses.
31282972Nonbreaking spaces are inserted after certain abbreviations, such as
3129−\[lq]Mr.\[rq]
2973+\[dq]Mr.\[dq]
31302974.PP
31312975This extension can be enabled/disabled for the following formats:
31322976.TP
@@ -3276,7 +3120,7 @@ letters are omitted.
32763120.SS Extension: \f[C]gfm_auto_identifiers\f[R]
32773121.PP
32783122Changes the algorithm used by \f[C]auto_identifiers\f[R] to conform to
3279−GitHub\[cq]s method.
3123+GitHub\[aq]s method.
32803124Spaces are converted to dashes (\f[C]-\f[R]), uppercase characters to
32813125lowercase characters, and punctuation characters other than \f[C]-\f[R]
32823126and \f[C]_\f[R] are removed.
@@ -3286,7 +3130,7 @@ Emojis are replaced by their names.
32863130The extensions \f[C]tex_math_dollars\f[R],
32873131\f[C]tex_math_single_backslash\f[R], and
32883132\f[C]tex_math_double_backslash\f[R] are described in the section about
3289−Pandoc\[cq]s Markdown.
3133+Pandoc\[aq]s Markdown.
32903134.PP
32913135However, they can also be used with HTML input.
32923136This is handy for reading web pages formatted using MathJax, for
@@ -3294,10 +3138,10 @@ example.
32943138.SS Raw HTML/TeX
32953139.PP
32963140The following extensions are described in more detail in their
3297−respective sections of Pandoc\[cq]s Markdown:
3141+respective sections of Pandoc\[aq]s Markdown:
32983142.IP \[bu] 2
32993143\f[C]raw_html\f[R] allows HTML elements which are not representable in
3300−pandoc\[cq]s AST to be parsed as raw HTML.
3144+pandoc\[aq]s AST to be parsed as raw HTML.
33013145By default, this is disabled for HTML input.
33023146.IP \[bu] 2
33033147\f[C]raw_tex\f[R] allows raw LaTeX, TeX, and ConTeXt to be included in a
@@ -3307,8 +3151,9 @@ addition to \f[C]markdown\f[R]):
33073151.RS 2
33083152.TP
33093153input formats
3310−\f[C]latex\f[R], \f[C]textile\f[R], \f[C]html\f[R] (environments,
3311−\f[C]\[rs]ref\f[R], and \f[C]\[rs]eqref\f[R] only), \f[C]ipynb\f[R]
3154+\f[C]latex\f[R], \f[C]org\f[R], \f[C]textile\f[R], \f[C]html\f[R]
3155+(environments, \f[C]\[rs]ref\f[R], and \f[C]\[rs]eqref\f[R] only),
3156+\f[C]ipynb\f[R]
33123157.TP
33133158output formats
33143159\f[C]textile\f[R], \f[C]commonmark\f[R]
@@ -3319,7 +3164,7 @@ with mime type \f[C]text/html\f[R] in output cells.
33193164Since the \f[C]ipynb\f[R] reader attempts to preserve the richest
33203165possible outputs when several options are given, you will get best
33213166results if you disable \f[C]raw_html\f[R] and \f[C]raw_tex\f[R] when
3322−converting to formats like \f[C]docx\f[R] which don\[cq]t allow raw
3167+converting to formats like \f[C]docx\f[R] which don\[aq]t allow raw
33233168\f[C]html\f[R] or \f[C]tex\f[R].
33243169.RE
33253170.IP \[bu] 2
@@ -3353,22 +3198,23 @@ the formats above, pandoc will treat the document as literate Haskell
33533198source.
33543199This means that
33553200.IP \[bu] 2
3356−In Markdown input, \[lq]bird track\[rq] sections will be parsed as
3201+In Markdown input, \[dq]bird track\[dq] sections will be parsed as
33573202Haskell code rather than block quotations.
33583203Text between \f[C]\[rs]begin{code}\f[R] and \f[C]\[rs]end{code}\f[R]
33593204will also be treated as Haskell code.
3360−For ATX-style headings the character `=' will be used instead of `#'.
3205+For ATX-style headings the character \[aq]=\[aq] will be used instead of
3206+\[aq]#\[aq].
33613207.IP \[bu] 2
33623208In Markdown output, code blocks with classes \f[C]haskell\f[R] and
33633209\f[C]literate\f[R] will be rendered using bird tracks, and block
33643210quotations will be indented one space, so they will not be treated as
33653211Haskell code.
33663212In addition, headings will be rendered setext-style (with underlines)
3367−rather than ATX-style (with `#' characters).
3368−(This is because ghc treats `#' characters in column 1 as introducing
3369−line numbers.)
3213+rather than ATX-style (with \[aq]#\[aq] characters).
3214+(This is because ghc treats \[aq]#\[aq] characters in column 1 as
3215+introducing line numbers.)
33703216.IP \[bu] 2
3371−In restructured text input, \[lq]bird track\[rq] sections will be parsed
3217+In restructured text input, \[dq]bird track\[dq] sections will be parsed
33723218as Haskell code.
33733219.IP \[bu] 2
33743220In restructured text output, code blocks with class \f[C]haskell\f[R]
@@ -3404,8 +3250,9 @@ writes HTML with the Haskell code in bird tracks, so it can be copied
34043250and pasted as literate Haskell source.
34053251.PP
34063252Note that GHC expects the bird tracks in the first column, so indented
3407−literate code blocks (e.g.\ inside an itemized environment) will not be
3408−picked up by the Haskell compiler.
3253+literate code blocks (e.g.
3254+inside an itemized environment) will not be picked up by the Haskell
3255+compiler.
34093256.SS Other extensions
34103257.SS Extension: \f[C]empty_paragraphs\f[R]
34113258.PP
@@ -3428,44 +3275,7 @@ This extension can be enabled/disabled for the following formats:
34283275.TP
34293276output formats
34303277\f[C]odt\f[R], \f[C]opendocument\f[R]
3431−.SS Extension: \f[C]xrefs_name\f[R]
3432−.PP
3433−Links to headings, figures and tables inside the document are
3434−substituted with cross-references that will use the name or caption of
3435−the referenced item.
3436−The original link text is replaced once the generated document is
3437−refreshed.
3438−This extension can be combined with \f[C]xrefs_number\f[R] in which case
3439−numbers will appear before the name.
3440−.PP
3441−Text in cross-references is only made consistent with the referenced
3442−item once the document has been refreshed.
3443−.PP
3444−This extension can be enabled/disabled for the following formats:
3445−.TP
3446−output formats
3447−\f[C]odt\f[R], \f[C]opendocument\f[R]
3448−.SS Extension: \f[C]xrefs_number\f[R]
3449−.PP
3450−Links to headings, figures and tables inside the document are
3451−substituted with cross-references that will use the number of the
3452−referenced item.
3453−The original link text is discarded.
3454−This extension can be combined with \f[C]xrefs_name\f[R] in which case
3455−the name or caption numbers will appear after the number.
3456−.PP
3457−For the \f[C]xrefs_number\f[R] to be useful heading numbers must be
3458−enabled in the generated document, also table and figure captions must
3459−be enabled using for example the \f[C]native_numbering\f[R] extension.
3460−.PP
3461−Numbers in cross-references are only visible in the final document once
3462−it has been refreshed.
3463−.PP
3464−This extension can be enabled/disabled for the following formats:
3465−.TP
3466−output formats
3467−\f[C]odt\f[R], \f[C]opendocument\f[R]
3468−.SS Extension: \f[C]styles\f[R]
3278+.SS Extension: \f[C]styles\f[R] {#ext-styles}
34693279.PP
34703280When converting from docx, read all docx styles as divs (for paragraph
34713281styles) and spans (for character styles) regardless of whether pandoc
@@ -3484,28 +3294,22 @@ to Emacs Muse markup.
34843294In the \f[C]ipynb\f[R] input format, this causes Markdown cells to be
34853295included as raw Markdown blocks (allowing lossless round-tripping)
34863296rather than being parsed.
3487−Use this only when you are targeting \f[C]ipynb\f[R] or a markdown-based
3488−output format.
3297+Use this only when you are targetting \f[C]ipynb\f[R] or a
3298+markdown-based output format.
34893299.SS Extension: \f[C]citations\f[R]
34903300.PP
3491−Some aspects of Pandoc\[cq]s Markdown citation syntax are also accepted
3301+Some aspects of Pandoc\[aq]s Markdown citation syntax are also accepted
34923302in \f[C]org\f[R] input.
3493−.SS Extension: \f[C]element_citations\f[R]
3494−.PP
3495−In the \f[C]jats\f[R] output formats, this causes reference items to be
3496−replaced with \f[C]<element-citation>\f[R] elements.
3497−These elements are not influenced by CSL styles, but all information on
3498−the item is included in tags.
34993303.SS Extension: \f[C]ntb\f[R]
35003304.PP
35013305In the \f[C]context\f[R] output format this enables the use of Natural
35023306Tables (TABLE) instead of the default Extreme Tables (xtables).
35033307Natural tables allow more fine-grained global customization but come at
35043308a performance penalty compared to extreme tables.
3505−.SH PANDOC\[cq]S MARKDOWN
3309+.SH PANDOC\[aq]S MARKDOWN
35063310.PP
35073311Pandoc understands an extended and slightly revised version of John
3508−Gruber\[cq]s Markdown syntax.
3312+Gruber\[aq]s Markdown syntax.
35093313This document explains the syntax, noting differences from standard
35103314Markdown.
35113315Except where noted, these differences can be suppressed by using the
@@ -3522,15 +3326,15 @@ easy to read:
35223326.RS
35233327.PP
35243328A Markdown-formatted document should be publishable as-is, as plain
3525−text, without looking like it\[cq]s been marked up with tags or
3329+text, without looking like it\[aq]s been marked up with tags or
35263330formatting instructions.
3527−\[en] John Gruber
3331+-- John Gruber
35283332.RE
35293333.PP
3530−This principle has guided pandoc\[cq]s decisions in finding syntax for
3334+This principle has guided pandoc\[aq]s decisions in finding syntax for
35313335tables, footnotes, and other extensions.
35323336.PP
3533−There is, however, one respect in which pandoc\[cq]s aims are different
3337+There is, however, one respect in which pandoc\[aq]s aims are different
35343338from the original aims of Markdown.
35353339Whereas Markdown was originally designed with HTML generation in mind,
35363340pandoc is designed for multiple output formats.
@@ -3555,7 +3359,7 @@ a hard line break, since trailing spaces in the cells are ignored.
35553359There are two kinds of headings: Setext and ATX.
35563360.SS Setext-style headings
35573361.PP
3558−A setext-style heading is a line of text \[lq]underlined\[rq] with a row
3362+A setext-style heading is a line of text \[dq]underlined\[dq] with a row
35593363of \f[C]=\f[R] signs (for a level-one heading) or \f[C]-\f[R] signs (for
35603364a level-two heading):
35613365.IP
@@ -3646,7 +3450,7 @@ My other heading {#foo}
36463450(This syntax is compatible with PHP Markdown Extra.)
36473451.PP
36483452Note that although this syntax allows assignment of classes and
3649−key/value attributes, writers generally don\[cq]t use all of this
3453+key/value attributes, writers generally don\[aq]t use all of this
36503454information.
36513455Identifiers, classes, and key/value attributes are used in HTML and
36523456HTML-based formats such as EPUB and slidy.
@@ -3761,7 +3565,7 @@ indented more than three spaces.)
37613565\f[R]
37623566.fi
37633567.PP
3764−A \[lq]lazy\[rq] form, which requires the \f[C]>\f[R] character only on
3568+A \[dq]lazy\[dq] form, which requires the \f[C]>\f[R] character only on
37653569the first line of each block, is also allowed:
37663570.IP
37673571.nf
@@ -3979,9 +3783,6 @@ begin with a space.
39793783\f[R]
39803784.fi
39813785.PP
3982−Inline formatting (such as emphasis) is allowed in the content, but not
3983−block-level formatting (such as block quotes or lists).
3984−.PP
39853786This syntax is borrowed from reStructuredText.
39863787.SS Lists
39873788.SS Bullet lists
@@ -3999,8 +3800,8 @@ Here is a simple example:
39993800\f[R]
40003801.fi
40013802.PP
4002−This will produce a \[lq]compact\[rq] list.
4003−If you want a \[lq]loose\[rq] list, in which each item is formatted as a
3803+This will produce a \[dq]compact\[dq] list.
3804+If you want a \[dq]loose\[dq] list, in which each item is formatted as a
40043805paragraph, put spaces between the items:
40053806.IP
40063807.nf
@@ -4028,7 +3829,7 @@ List items look best if subsequent lines are flush with the first line
40283829\f[R]
40293830.fi
40303831.PP
4031−But Markdown also allows a \[lq]lazy\[rq] format:
3832+But Markdown also allows a \[dq]lazy\[dq] format:
40323833.IP
40333834.nf
40343835\f[C]
@@ -4091,7 +3892,7 @@ character after the list marker of the containing list item.
40913892.fi
40923893.PP
40933894As noted above, Markdown allows you to write list items
4094−\[lq]lazily,\[rq] instead of indenting continuation lines.
3895+\[dq]lazily,\[dq] instead of indenting continuation lines.
40953896However, if there are multiple paragraphs or other blocks in a list
40963897item, the first line of each must be indented.
40973898.IP
@@ -4145,8 +3946,8 @@ They must be separated from the text that follows by at least one space,
41453946and, if the list marker is a capital letter with a period, by at least
41463947two spaces.
41473948.PP
4148−The \f[C]fancy_lists\f[R] extension also allows `\f[C]#\f[R]' to be used
4149−as an ordered list marker in place of a numeral:
3949+The \f[C]fancy_lists\f[R] extension also allows \[aq]\f[C]#\f[R]\[aq] to
3950+be used as an ordered list marker in place of a numeral:
41503951.IP
41513952.nf
41523953\f[C]
@@ -4239,7 +4040,7 @@ one or more block elements (paragraph, code block, list, etc.), each
42394040indented four spaces or one tab stop.
42404041The body of the definition (including the first line, aside from the
42414042colon or tilde) should be indented four spaces.
4242−However, as with other Markdown lists, you can \[lq]lazily\[rq] omit
4043+However, as with other Markdown lists, you can \[dq]lazily\[dq] omit
42434044indentation except at the beginning of a paragraph or other block
42444045element:
42454046.IP
@@ -4273,16 +4074,16 @@ Term 2
42734074.fi
42744075.PP
42754076Note that space between items in a definition list is required.
4276−(A variant that loosens this requirement, but disallows \[lq]lazy\[rq]
4077+(A variant that loosens this requirement, but disallows \[dq]lazy\[dq]
42774078hard wrapping, can be activated with \f[C]compact_definition_lists\f[R]:
4278−see Non-default extensions, below.)
4079+see Non-pandoc extensions, below.)
42794080.SS Numbered example lists
42804081.SS Extension: \f[C]example_lists\f[R]
42814082.PP
42824083The special list marker \f[C]\[at]\f[R] can be used for sequentially
42834084numbered examples.
4284−The first list item with a \f[C]\[at]\f[R] marker will be numbered `1',
4285−the next `2', and so on, throughout the document.
4085+The first list item with a \f[C]\[at]\f[R] marker will be numbered
4086+\[aq]1\[aq], the next \[aq]2\[aq], and so on, throughout the document.
42864087The numbered examples need not occur in a single list; each new list
42874088using \f[C]\[at]\f[R] will take up where the last stopped.
42884089So, for example:
@@ -4318,6 +4119,39 @@ That is, example lists always behave as if the \f[C]four_space_rule\f[R]
43184119extension is set.
43194120This is because example labels tend to be long, and indenting content to
43204121the first non-space character after the label would be awkward.
4122+.SS Compact and loose lists
4123+.PP
4124+Pandoc behaves differently from \f[C]Markdown.pl\f[R] on some \[dq]edge
4125+cases\[dq] involving lists.
4126+Consider this source:
4127+.IP
4128+.nf
4129+\f[C]
4130++ First
4131++ Second:
4132+ - Fee
4133+ - Fie
4134+ - Foe
4135+
4136++ Third
4137+\f[R]
4138+.fi
4139+.PP
4140+Pandoc transforms this into a \[dq]compact list\[dq] (with no
4141+\f[C]<p>\f[R] tags around \[dq]First\[dq], \[dq]Second\[dq], or
4142+\[dq]Third\[dq]), while Markdown puts \f[C]<p>\f[R] tags around
4143+\[dq]Second\[dq] and \[dq]Third\[dq] (but not \[dq]First\[dq]), because
4144+of the blank space around \[dq]Third\[dq].
4145+Pandoc follows a simple rule: if the text is followed by a blank line,
4146+it is treated as a paragraph.
4147+Since \[dq]Second\[dq] is followed by a list, and not a blank line, it
4148+isn\[aq]t treated as a paragraph.
4149+The fact that the list is followed by a blank line is irrelevant.
4150+(Note: Pandoc works this way even when the \f[C]markdown_strict\f[R]
4151+format is specified.
4152+This behavior is consistent with the official Markdown syntax
4153+description, even though it is different from that of
4154+\f[C]Markdown.pl\f[R].)
43214155.SS Ending a list
43224156.PP
43234157What if you want to put an indented code block after a list?
@@ -4335,8 +4169,8 @@ Trouble! Here pandoc (like other Markdown implementations) will treat
43354169\f[C]{ my code block }\f[R] as the second paragraph of item two, and not
43364170as a code block.
43374171.PP
4338−To \[lq]cut off\[rq] the list after item two, you can insert some
4339−non-indented content, like an HTML comment, which won\[cq]t produce
4172+To \[dq]cut off\[dq] the list after item two, you can insert some
4173+non-indented content, like an HTML comment, which won\[aq]t produce
43404174visible output in any format:
43414175.IP
43424176.nf
@@ -4532,7 +4366,7 @@ can be omitted for a headerless table.
45324366The cells of grid tables may contain arbitrary block elements (multiple
45334367paragraphs, code blocks, lists, etc.).
45344368Cells that span multiple columns or rows are not supported.
4535−Grid tables can be created easily using Emacs\[cq] table-mode
4369+Grid tables can be created easily using Emacs\[aq] table-mode
45364370(\f[C]M-x table-insert\f[R]).
45374371.PP
45384372Alignments can be specified as with pipe tables, by putting colons at
@@ -4616,7 +4450,7 @@ lines are wider than column width, then cell contents will not be
46164450wrapped, and the cells will be sized to their contents.
46174451.PP
46184452Note: pandoc also recognizes pipe tables of the following form, as can
4619−be produced by Emacs\[cq] orgtbl-mode:
4453+be produced by Emacs\[aq] orgtbl-mode:
46204454.IP
46214455.nf
46224456\f[C]
@@ -4629,7 +4463,7 @@ be produced by Emacs\[cq] orgtbl-mode:
46294463.PP
46304464The difference is that \f[C]+\f[R] is used instead of \f[C]|\f[R].
46314465Other orgtbl features are not supported.
4632−In particular, to get non-default column alignment, you\[cq]ll need to
4466+In particular, to get non-default column alignment, you\[aq]ll need to
46334467add colons as above.
46344468.SS Metadata blocks
46354469.SS Extension: \f[C]pandoc_title_block\f[R]
@@ -4707,13 +4541,13 @@ All three metadata fields may contain standard inline formatting
47074541.PP
47084542Title blocks will always be parsed, but they will affect the output only
47094543when the \f[C]--standalone\f[R] (\f[C]-s\f[R]) option is chosen.
4710−In HTML output, titles will appear twice: once in the document head
4711−\[en] this is the title that will appear at the top of the window in a
4712−browser \[en] and once at the beginning of the document body.
4544+In HTML output, titles will appear twice: once in the document head --
4545+this is the title that will appear at the top of the window in a browser
4546+-- and once at the beginning of the document body.
47134547The title in the document head can have an optional prefix attached
47144548(\f[C]--title-prefix\f[R] or \f[C]-T\f[R] option).
47154549The title in the body appears as an H1 element with class
4716−\[lq]title\[rq], so it can be suppressed or reformatted with CSS.
4550+\[dq]title\[dq], so it can be suppressed or reformatted with CSS.
47174551If a title prefix is specified with \f[C]-T\f[R] and no title block
47184552appears in the document, the title prefix will be used by itself as the
47194553HTML title.
@@ -4742,7 +4576,7 @@ will yield a man page with the title \f[C]PANDOC\f[R] and section 1.
47424576\f[R]
47434577.fi
47444578.PP
4745−will also have \[lq]Pandoc User Manuals\[rq] in the footer.
4579+will also have \[dq]Pandoc User Manuals\[dq] in the footer.
47464580.IP
47474581.nf
47484582\f[C]
@@ -4750,7 +4584,7 @@ will also have \[lq]Pandoc User Manuals\[rq] in the footer.
47504584\f[R]
47514585.fi
47524586.PP
4753−will also have \[lq]Version 4.0\[rq] in the header.
4587+will also have \[dq]Version 4.0\[dq] in the header.
47544588.SS Extension: \f[C]yaml_metadata_block\f[R]
47554589.PP
47564590A YAML metadata block is a valid YAML object, delimited by a line of
@@ -4796,9 +4630,7 @@ All of the metadata will appear in a single block at the beginning of
47964630the document.
47974631.PP
47984632Note that YAML escaping rules must be followed.
4799−Thus, for example, if a title contains a colon, it must be quoted, and
4800−if it contains a backslash escape, then it must be ensured that it is
4801−not treated as a YAML escape sequence.
4633+Thus, for example, if a title contains a colon, it must be quoted.
48024634The pipe character (\f[C]|\f[R]) can be used to begin an indented block
48034635that will be interpreted literally, without need for escaping.
48044636This form is necessary when the field contains blank lines or
@@ -4820,13 +4652,6 @@ abstract: |
48204652\f[R]
48214653.fi
48224654.PP
4823−The literal block after the \f[C]|\f[R] must be indented relative to the
4824−line containing the \f[C]|\f[R].
4825−If it is not, the YAML will be invalid and pandoc will not interpret it
4826−as metadata.
4827−For an overview of the complex rules governing YAML, see the Wikipedia
4828−entry on YAML syntax.
4829−.PP
48304655Template variables will be set automatically from the metadata.
48314656Thus, for example, in writing HTML, the variable \f[C]abstract\f[R] will
48324657be set to the HTML equivalent of the Markdown in the \f[C]abstract\f[R]
@@ -4875,7 +4700,7 @@ $endfor$
48754700\f[R]
48764701.fi
48774702.PP
4878−Raw content to include in the document\[cq]s header may be specified
4703+Raw content to include in the document\[aq]s header may be specified
48794704using \f[C]header-includes\f[R]; however, it is important to mark up
48804705this content as raw code for a particular output format, using the
48814706\f[C]raw_attribute\f[R] extension), or it will be interpreted as
@@ -4892,21 +4717,6 @@ header-includes:
48924717 \[ga]\[ga]\[ga]
48934718\f[R]
48944719.fi
4895−.PP
4896−Note: the \f[C]yaml_metadata_block\f[R] extension works with
4897−\f[C]commonmark\f[R] as well as \f[C]markdown\f[R] (and it is enabled by
4898−default in \f[C]gfm\f[R] and \f[C]commonmark_x\f[R]).
4899−However, in these formats the following restrictions apply:
4900−.IP \[bu] 2
4901−The YAML metadata block must occur at the beginning of the document (and
4902−there can be only one).
4903−If multiple files are given as arguments to pandoc, only the first can
4904−be a YAML metadata block.
4905−.IP \[bu] 2
4906−The leaf nodes of the YAML structure are parsed in isolation from each
4907−other and from the rest of the document.
4908−So, for example, you can\[cq]t use a reference link in these contexts if
4909−the link definition is somewhere else in the document.
49104720.SS Backslash escapes
49114721.SS Extension: \f[C]all_symbols_escapable\f[R]
49124722.PP
@@ -4937,7 +4747,7 @@ instead of
49374747\f[R]
49384748.fi
49394749.PP
4940−This rule is easier to remember than standard Markdown\[cq]s rule, which
4750+This rule is easier to remember than standard Markdown\[aq]s rule, which
49414751allows only the following characters to be backslash-escaped:
49424752.IP
49434753.nf
@@ -4953,15 +4763,16 @@ A backslash-escaped space is parsed as a nonbreaking space.
49534763In TeX output, it will appear as \f[C]\[ti]\f[R].
49544764In HTML and XML output, it will appear as a literal unicode nonbreaking
49554765space character (note that it will thus actually look
4956−\[lq]invisible\[rq] in the generated HTML source; you can still use the
4766+\[dq]invisible\[dq] in the generated HTML source; you can still use the
49574767\f[C]--ascii\f[R] command-line option to make it appear as an explicit
49584768entity).
49594769.PP
4960−A backslash-escaped newline (i.e.\ a backslash occurring at the end of a
4961−line) is parsed as a hard line break.
4770+A backslash-escaped newline (i.e.
4771+a backslash occurring at the end of a line) is parsed as a hard line
4772+break.
49624773It will appear in TeX output as \f[C]\[rs]\[rs]\f[R] and in HTML as
49634774\f[C]<br />\f[R].
4964−This is a nice alternative to Markdown\[cq]s \[lq]invisible\[rq] way of
4775+This is a nice alternative to Markdown\[aq]s \[dq]invisible\[dq] way of
49654776indicating hard line breaks using two trailing spaces on a line.
49664777.PP
49674778Backslash escapes do not work in verbatim contexts.
@@ -5038,8 +4849,8 @@ If the superscripted or subscripted text contains spaces, these spaces
50384849must be escaped with backslashes.
50394850(This is to prevent accidental superscripting and subscripting through
50404851the ordinary use of \f[C]\[ti]\f[R] and \f[C]\[ha]\f[R], and also bad
5041−interactions with footnotes.) Thus, if you want the letter P with `a
5042−cat' in subscripts, use \f[C]P\[ti]a\[rs] cat\[ti]\f[R], not
4852+interactions with footnotes.) Thus, if you want the letter P with \[aq]a
4853+cat\[aq] in subscripts, use \f[C]P\[ti]a\[rs] cat\[ti]\f[R], not
50434854\f[C]P\[ti]a cat\[ti]\f[R].
50444855.SS Verbatim
50454856.PP
@@ -5119,16 +4930,14 @@ The opening \f[C]$\f[R] must have a non-space character immediately to
51194930its right, while the closing \f[C]$\f[R] must have a non-space character
51204931immediately to its left, and must not be followed immediately by a
51214932digit.
5122−Thus, \f[C]$20,000 and $30,000\f[R] won\[cq]t parse as math.
4933+Thus, \f[C]$20,000 and $30,000\f[R] won\[aq]t parse as math.
51234934If for some reason you need to enclose text in literal \f[C]$\f[R]
5124−characters, backslash-escape them and they won\[cq]t be treated as math
4935+characters, backslash-escape them and they won\[aq]t be treated as math
51254936delimiters.
51264937.PP
51274938For display math, use \f[C]$$\f[R] delimiters.
51284939(In this case, the delimiters may be separated from the formula by
5129−whitespace.
5130−However, there can be no blank lines betwen the opening and closing
5131−\f[C]$$\f[R] delimiters.)
4940+whitespace.)
51324941.PP
51334942TeX math will be printed in all output formats.
51344943How it is rendered depends on the output format:
@@ -5159,7 +4968,7 @@ Texinfo
51594968It will be rendered inside a \f[C]\[at]math\f[R] command.
51604969.TP
51614970roff man, Jira markup
5162−It will be rendered verbatim without \f[C]$\f[R]\[cq]s.
4971+It will be rendered verbatim without \f[C]$\f[R]\[aq]s.
51634972.TP
51644973MediaWiki, DokuWiki
51654974It will be rendered inside \f[C]<math>\f[R] tags.
@@ -5217,7 +5026,7 @@ Note that even if \f[C]raw_html\f[R] is disabled, tables will be
52175026rendered with HTML syntax if they cannot use pipe syntax.
52185027.SS Extension: \f[C]markdown_in_html_blocks\f[R]
52195028.PP
5220−Standard Markdown allows you to include HTML \[lq]blocks\[rq]: blocks of
5029+Standard Markdown allows you to include HTML \[dq]blocks\[dq]: blocks of
52215030HTML between balanced tags that are separated from the surrounding text
52225031with blank lines, and start and end at the left margin.
52235032Within these blocks, everything is interpreted as HTML, not Markdown; so
@@ -5254,9 +5063,8 @@ into
52545063.PP
52555064whereas \f[C]Markdown.pl\f[R] will preserve it as is.
52565065.PP
5257−There is one exception to this rule: text between \f[C]<script>\f[R],
5258−\f[C]<style>\f[R], and \f[C]<textarea>\f[R] tags is not interpreted as
5259−Markdown.
5066+There is one exception to this rule: text between \f[C]<script>\f[R] and
5067+\f[C]<style>\f[R] tags is not interpreted as Markdown.
52605068.PP
52615069This departure from standard Markdown should make it easier to mix
52625070Markdown with HTML block elements.
@@ -5556,7 +5364,7 @@ slide shows and EPUB), LaTeX, and ConTeXt.
55565364.PP
55575365A link immediately preceded by a \f[C]!\f[R] will be treated as an
55585366image.
5559−The link text will be used as the image\[cq]s alt text:
5367+The link text will be used as the image\[aq]s alt text:
55605368.IP
55615369.nf
55625370\f[C]
@@ -5571,7 +5379,7 @@ The link text will be used as the image\[cq]s alt text:
55715379.PP
55725380An image with nonempty alt text, occurring by itself in a paragraph,
55735381will be rendered as a figure with a caption.
5574−The image\[cq]s alt text will be used as the caption.
5382+The image\[aq]s alt text will be used as the caption.
55755383.IP
55765384.nf
55775385\f[C]
@@ -5580,8 +5388,9 @@ The image\[cq]s alt text will be used as the caption.
55805388.fi
55815389.PP
55825390How this is rendered depends on the output format.
5583−Some output formats (e.g.\ RTF) do not yet support figures.
5584−In those formats, you\[cq]ll just get an image in a paragraph by itself,
5391+Some output formats (e.g.
5392+RTF) do not yet support figures.
5393+In those formats, you\[aq]ll just get an image in a paragraph by itself,
55855394with no caption.
55865395.PP
55875396If you just want a regular inline image, just make sure it is not the
@@ -5652,7 +5461,7 @@ HTML:
56525461.IP \[bu] 2
56535462LaTeX:
56545463\f[C]\[rs]includegraphics[width=0.5\[rs]textwidth,height=\[rs]textheight]{file.jpg}\f[R]
5655−(If you\[cq]re using a custom template, you need to configure
5464+(If you\[aq]re using a custom template, you need to configure
56565465\f[C]graphicx\f[R] as in the default template.)
56575466.IP \[bu] 2
56585467ConTeXt:
@@ -5735,7 +5544,7 @@ immediately by attributes:
57355544.SS Footnotes
57365545.SS Extension: \f[C]footnotes\f[R]
57375546.PP
5738−Pandoc\[cq]s Markdown allows footnotes, using the following syntax:
5547+Pandoc\[aq]s Markdown allows footnotes, using the following syntax:
57395548.IP
57405549.nf
57415550\f[C]
@@ -5784,73 +5593,198 @@ note.]
57845593.fi
57855594.PP
57865595Inline and regular footnotes may be mixed freely.
5787−.SS Citation syntax
5596+.SS Citations
57885597.SS Extension: \f[C]citations\f[R]
57895598.PP
5790−To cite a bibliographic item with an identifier foo, use the syntax
5791−\f[C]\[at]foo\f[R].
5792−Normal citations should be included in square brackets, with semicolons
5793−separating distinct items:
5599+Using an external filter, \f[C]pandoc-citeproc\f[R], pandoc can
5600+automatically generate citations and a bibliography in a number of
5601+styles.
5602+Basic usage is
57945603.IP
57955604.nf
57965605\f[C]
5797−Blah blah [\[at]doe99; \[at]smith2000; \[at]smith2004].
5606+pandoc --filter pandoc-citeproc myinput.txt
57985607\f[R]
57995608.fi
58005609.PP
5801−How this is rendered depends on the citation style.
5802−In an author-date style, it might render as
5803−.IP
5804−.nf
5805−\f[C]
5806−Blah blah (Doe 1999, Smith 2000, 2004).
5807−\f[R]
5808−.fi
5610+In order to use this feature, you will need to specify a bibliography
5611+file using the \f[C]bibliography\f[R] metadata field in a YAML metadata
5612+section, or \f[C]--bibliography\f[R] command line argument.
5613+You can supply multiple \f[C]--bibliography\f[R] arguments or set
5614+\f[C]bibliography\f[R] metadata field to YAML array, if you want to use
5615+multiple bibliography files.
5616+The bibliography may have any of these formats:
5617+.PP
5618+.TS
5619+tab(@);
5620+l l.
5621+T{
5622+Format
5623+T}@T{
5624+File extension
5625+T}
5626+_
5627+T{
5628+BibLaTeX
5629+T}@T{
5630+\&.bib
5631+T}
5632+T{
5633+BibTeX
5634+T}@T{
5635+\&.bibtex
5636+T}
5637+T{
5638+Copac
5639+T}@T{
5640+\&.copac
5641+T}
5642+T{
5643+CSL JSON
5644+T}@T{
5645+\&.json
5646+T}
5647+T{
5648+CSL YAML
5649+T}@T{
5650+\&.yaml
5651+T}
5652+T{
5653+EndNote
5654+T}@T{
5655+\&.enl
5656+T}
5657+T{
5658+EndNote XML
5659+T}@T{
5660+\&.xml
5661+T}
5662+T{
5663+ISI
5664+T}@T{
5665+\&.wos
5666+T}
5667+T{
5668+MEDLINE
5669+T}@T{
5670+\&.medline
5671+T}
5672+T{
5673+MODS
5674+T}@T{
5675+\&.mods
5676+T}
5677+T{
5678+RIS
5679+T}@T{
5680+\&.ris
5681+T}
5682+.TE
5683+.PP
5684+Note that \f[C].bib\f[R] can be used with both BibTeX and BibLaTeX
5685+files; use \f[C].bibtex\f[R] to force BibTeX.
5686+.PP
5687+Note that \f[C]pandoc-citeproc --bib2json\f[R] and
5688+\f[C]pandoc-citeproc --bib2yaml\f[R] can produce \f[C].json\f[R] and
5689+\f[C].yaml\f[R] files from any of the supported formats.
5690+.PP
5691+In-field markup: In BibTeX and BibLaTeX databases, pandoc-citeproc
5692+parses a subset of LaTeX markup; in CSL YAML databases, pandoc Markdown;
5693+and in CSL JSON databases, an HTML-like markup:
5694+.TP
5695+\f[B]\f[CB]<i>...</i>\f[B]\f[R]
5696+italics
5697+.TP
5698+\f[B]\f[CB]<b>...</b>\f[B]\f[R]
5699+bold
5700+.TP
5701+\f[B]\f[CB]<span style=\[dq]font-variant:small-caps;\[dq]>...</span>\f[B]\f[R] or \f[B]\f[CB]<sc>...</sc>\f[B]\f[R]
5702+small capitals
5703+.TP
5704+\f[B]\f[CB]<sub>...</sub>\f[B]\f[R]
5705+subscript
5706+.TP
5707+\f[B]\f[CB]<sup>...</sup>\f[B]\f[R]
5708+superscript
5709+.TP
5710+\f[B]\f[CB]<span class=\[dq]nocase\[dq]>...</span>\f[B]\f[R]
5711+prevent a phrase from being capitalized as title case
58095712.PP
5810−In a footnote style, it might render as
5713+\f[C]pandoc-citeproc -j\f[R] and \f[C]-y\f[R] interconvert the CSL JSON
5714+and CSL YAML formats as far as possible.
5715+.PP
5716+As an alternative to specifying a bibliography file using
5717+\f[C]--bibliography\f[R] or the YAML metadata field
5718+\f[C]bibliography\f[R], you can include the citation data directly in
5719+the \f[C]references\f[R] field of the document\[aq]s YAML metadata.
5720+The field should contain an array of YAML-encoded references, for
5721+example:
58115722.IP
58125723.nf
58135724\f[C]
5814−Blah blah.[\[ha]1]
5815−
5816−[\[ha]1]: John Doe, \[dq]Frogs,\[dq] *Journal of Amphibians* 44 (1999);
5817−Susan Smith, \[dq]Flies,\[dq] *Journal of Insects* (2000);
5818−Susan Smith, \[dq]Bees,\[dq] *Journal of Insects* (2004).
5725+---
5726+references:
5727+- type: article-journal
5728+ id: WatsonCrick1953
5729+ author:
5730+ - family: Watson
5731+ given: J. D.
5732+ - family: Crick
5733+ given: F. H. C.
5734+ issued:
5735+ date-parts:
5736+ - - 1953
5737+ - 4
5738+ - 25
5739+ title: \[aq]Molecular structure of nucleic acids: a structure for deoxyribose
5740+ nucleic acid\[aq]
5741+ title-short: Molecular structure of nucleic acids
5742+ container-title: Nature
5743+ volume: 171
5744+ issue: 4356
5745+ page: 737-738
5746+ DOI: 10.1038/171737a0
5747+ URL: https://www.nature.com/articles/171737a0
5748+ language: en-GB
5749+\&...
58195750\f[R]
58205751.fi
58215752.PP
5822−See the CSL user documentation for more information about CSL styles and
5823−how they affect rendering.
5753+(\f[C]pandoc-citeproc --bib2yaml\f[R] can produce these from a
5754+bibliography file in one of the supported formats.)
58245755.PP
5825−Unless a citation key start with a letter, digit, or \f[C]_\f[R], and
5826−contains only alphanumerics and internal punctuation characters
5827−(\f[C]:.#$%&-+?<>\[ti]/\f[R]), it must be surrounded by curly braces,
5828−which are not considered part of the key.
5829−In \f[C]\[at]Foo_bar.baz.\f[R], the key is \f[C]Foo_bar.baz\f[R].
5830−The final period is not \f[I]internal\f[R] punctuation, so it is not
5831−included in the key.
5832−In \f[C]\[at]{Foo_bar.baz.}\f[R], the key is \f[C]Foo_bar.baz.\f[R],
5833−including the final period.
5834−The curly braces are recommended if you use URLs as keys:
5835−\f[C][\[at]{https://example.com/bib?name=foobar&date=2000}, p. 33]\f[R].
5836−.PP
5837−Citation items may optionally include a prefix, a locator, and a suffix.
5838−In
5756+Citations and references can be formatted using any style supported by
5757+the Citation Style Language, listed in the Zotero Style Repository.
5758+These files are specified using the \f[C]--csl\f[R] option or the
5759+\f[C]csl\f[R] metadata field.
5760+By default, \f[C]pandoc-citeproc\f[R] will use the Chicago Manual of
5761+Style author-date format.
5762+The CSL project provides further information on finding and editing
5763+styles.
5764+.PP
5765+To make your citations hyperlinks to the corresponding bibliography
5766+entries, add \f[C]link-citations: true\f[R] to your YAML metadata.
5767+.PP
5768+Citations go inside square brackets and are separated by semicolons.
5769+Each citation must have a key, composed of \[aq]\[at]\[aq] + the
5770+citation identifier from the database, and may optionally have a prefix,
5771+a locator, and a suffix.
5772+The citation key must begin with a letter, digit, or \f[C]_\f[R], and
5773+may contain alphanumerics, \f[C]_\f[R], and internal punctuation
5774+characters (\f[C]:.#$%&-+?<>\[ti]/\f[R]).
5775+Here are some examples:
58395776.IP
58405777.nf
58415778\f[C]
5842−Blah blah [see \[at]doe99, pp. 33-35 and *passim*; \[at]smith04, chap. 1].
5779+Blah blah [see \[at]doe99, pp. 33-35; also \[at]smith04, chap. 1].
5780+
5781+Blah blah [\[at]doe99, pp. 33-35, 38-39 and *passim*].
5782+
5783+Blah blah [\[at]smith04; \[at]doe99].
58435784\f[R]
58445785.fi
58455786.PP
5846−The first item (\f[C]doe99\f[R]) has prefix \f[C]see\f[R], locator
5847−\f[C]pp. 33-35\f[R], and suffix \f[C]and *passim*\f[R].
5848−The second item (\f[C]smith04\f[R]) has locator \f[C]chap. 1\f[R] and no
5849−prefix or suffix.
5850−.PP
5851−Pandoc uses some heuristics to separate the locator from the rest of the
5852−subject.
5853−It is sensitive to the locator terms defined in the CSL locale files.
5787+\f[C]pandoc-citeproc\f[R] detects locator terms in the CSL locale files.
58545788Either abbreviated or unabbreviated forms are accepted.
58555789In the \f[C]en-US\f[R] locale, locator terms can be written in either
58565790singular or plural forms, as \f[C]book\f[R],
@@ -5870,17 +5804,17 @@ singular or plural forms, as \f[C]book\f[R],
58705804\f[C]v.\f[R]/\f[C]vv.\f[R]; \f[C]volume\f[R],
58715805\f[C]vol.\f[R]/\f[C]vols.\f[R]; \f[C]\[ps]\f[R]/\f[C]\[ps]\[ps]\f[R];
58725806\f[C]\[sc]\f[R]/\f[C]\[sc]\[sc]\f[R].
5873−If no locator term is used, \[lq]page\[rq] is assumed.
5807+If no locator term is used, \[dq]page\[dq] is assumed.
58745808.PP
5875−In complex cases, you can force something to be treated as a locator by
5876−enclosing it in curly braces or prevent parsing the suffix as locator by
5877−prepending curly braces:
5809+\f[C]pandoc-citeproc\f[R] will use heuristics to distinguish the locator
5810+from the suffix.
5811+In complex cases, the locator can be enclosed in curly braces (using
5812+\f[C]pandoc-citeproc\f[R] 0.15 and higher only):
58785813.IP
58795814.nf
58805815\f[C]
58815816[\[at]smith{ii, A, D-Z}, with a suffix]
58825817[\[at]smith, {pp. iv, vi-xi, (xv)-(xvii)} with suffix here]
5883−[\[at]smith{}, 99 years later]
58845818\f[R]
58855819.fi
58865820.PP
@@ -5894,8 +5828,7 @@ Smith says blah [-\[at]smith04].
58945828\f[R]
58955829.fi
58965830.PP
5897−You can also write an author-in-text citation, by omitting the square
5898−brackets:
5831+You can also write an in-text citation, as follows:
58995832.IP
59005833.nf
59015834\f[C]
@@ -5905,63 +5838,84 @@ brackets:
59055838\f[R]
59065839.fi
59075840.PP
5908−This will cause the author\[cq]s name to be rendered, followed by the
5909−bibliographical details.
5910−Use this form when you want to make the citation the subject of a
5911−sentence.
5912−.PP
5913−When you are using a note style, it is usually better to let citeproc
5914−create the footnotes from citations rather than writing an explicit
5915−note.
5916−If you do write an explicit note that contains a citation, note that
5917−normal citations will be put in parentheses, while author-in-text
5918−citations will not.
5919−For this reason, it is sometimes preferable to use the author-in-text
5920−style inside notes when using a note style.
5921−.SS Non-default extensions
5922−.PP
5923−The following Markdown syntax extensions are not enabled by default in
5924−pandoc, but may be enabled by adding \f[C]+EXTENSION\f[R] to the format
5925−name, where \f[C]EXTENSION\f[R] is the name of the extension.
5926−Thus, for example, \f[C]markdown+hard_line_breaks\f[R] is Markdown with
5927−hard line breaks.
5928−.SS Extension: \f[C]rebase_relative_paths\f[R]
5929−.PP
5930−Rewrite relative paths for Markdown links and images, depending on the
5931−path of the file containing the link or image link.
5932−For each link or image, pandoc will compute the directory of the
5933−containing file, relative to the working directory, and prepend the
5934−resulting path to the link or image path.
5935−.PP
5936−The use of this extension is best understood by example.
5937−Suppose you have a a subdirectory for each chapter of a book,
5938−\f[C]chap1\f[R], \f[C]chap2\f[R], \f[C]chap3\f[R].
5939−Each contains a file \f[C]text.md\f[R] and a number of images used in
5940−the chapter.
5941−You would like to have \f[C]\f[R] in
5942−\f[C]chap1/text.md\f[R] refer to \f[C]chap1/spider.jpg\f[R] and
5943−\f[C]\f[R] in \f[C]chap2/text.md\f[R] refer to
5944−\f[C]chap2/spider.jpg\f[R].
5945−To do this, use
5841+If the style calls for a list of works cited, it will be placed in a div
5842+with id \f[C]refs\f[R], if one exists:
59465843.IP
59475844.nf
59485845\f[C]
5949−pandoc chap*/*.md -f markdown+rebase_relative_paths
5846+::: {#refs}
5847+:::
59505848\f[R]
59515849.fi
59525850.PP
5953−Without this extension, you would have to use
5954−\f[C]\f[R] in \f[C]chap1/text.md\f[R] and
5955−\f[C]\f[R] in \f[C]chap2/text.md\f[R].
5956−Links with relative paths will be rewritten in the same way as images.
5851+Otherwise, it will be placed at the end of the document.
5852+Generation of the bibliography can be suppressed by setting
5853+\f[C]suppress-bibliography: true\f[R] in the YAML metadata.
59575854.PP
5958−Absolute paths and URLs are not changed.
5959−Neither are empty paths or paths consisting entirely of a fragment,
5960−e.g., \f[C]#foo\f[R].
5855+If you wish the bibliography to have a section heading, you can set
5856+\f[C]reference-section-title\f[R] in the metadata, or put the heading at
5857+the beginning of the div with id \f[C]refs\f[R] (if you are using it) or
5858+at the end of your document:
5859+.IP
5860+.nf
5861+\f[C]
5862+last paragraph...
5863+
5864+# References
5865+\f[R]
5866+.fi
5867+.PP
5868+The bibliography will be inserted after this heading.
5869+Note that the \f[C]unnumbered\f[R] class will be added to this heading,
5870+so that the section will not be numbered.
5871+.PP
5872+If you want to include items in the bibliography without actually citing
5873+them in the body text, you can define a dummy \f[C]nocite\f[R] metadata
5874+field and put the citations there:
5875+.IP
5876+.nf
5877+\f[C]
5878+---
5879+nocite: |
5880+ \[at]item1, \[at]item2
5881+\&...
5882+
5883+\[at]item3
5884+\f[R]
5885+.fi
5886+.PP
5887+In this example, the document will contain a citation for
5888+\f[C]item3\f[R] only, but the bibliography will contain entries for
5889+\f[C]item1\f[R], \f[C]item2\f[R], and \f[C]item3\f[R].
5890+.PP
5891+It is possible to create a bibliography with all the citations, whether
5892+or not they appear in the document, by using a wildcard:
5893+.IP
5894+.nf
5895+\f[C]
5896+---
5897+nocite: |
5898+ \[at]*
5899+\&...
5900+\f[R]
5901+.fi
5902+.PP
5903+For LaTeX output, you can also use \f[C]natbib\f[R] or
5904+\f[C]biblatex\f[R] to render the bibliography.
5905+In order to do so, specify bibliography files as outlined above, and add
5906+\f[C]--natbib\f[R] or \f[C]--biblatex\f[R] argument to \f[C]pandoc\f[R]
5907+invocation.
5908+Bear in mind that bibliography files have to be in respective format
5909+(either BibTeX or BibLaTeX).
5910+.PP
5911+For more information, see the pandoc-citeproc man page.
5912+.SS Non-pandoc extensions
59615913.PP
5962−Note that relative paths in reference links and images will be rewritten
5963−relative to the file containing the link reference definition, not the
5964−file containing the reference link or image itself, if these differ.
5914+The following Markdown syntax extensions are not enabled by default in
5915+pandoc, but may be enabled by adding \f[C]+EXTENSION\f[R] to the format
5916+name, where \f[C]EXTENSION\f[R] is the name of the extension.
5917+Thus, for example, \f[C]markdown+hard_line_breaks\f[R] is Markdown with
5918+hard line breaks.
59655919.SS Extension: \f[C]attributes\f[R]
59665920.PP
59675921Allows attributes to be attached to any inline or block-level element.
@@ -5992,7 +5946,7 @@ affect the code block element.
59925946Attributes that occur at the end of a reference link definition affect
59935947links that refer to that definition.
59945948.PP
5995−Note that pandoc\[cq]s AST does not currently allow attributes to be
5949+Note that pandoc\[aq]s AST does not currently allow attributes to be
59965950attached to arbitrary elements.
59975951Hence a Span or Div container will be added if needed.
59985952.SS Extension: \f[C]old_dashes\f[R]
@@ -6006,7 +5960,7 @@ It is selected automatically for \f[C]textile\f[R] input.
60065960.PP
60075961Allow \f[C]<\f[R] and \f[C]>\f[R] to be backslash-escaped, as they can
60085962be in GitHub flavored Markdown but not original Markdown.
6009−This is implied by pandoc\[cq]s default \f[C]all_symbols_escapable\f[R].
5963+This is implied by pandoc\[aq]s default \f[C]all_symbols_escapable\f[R].
60105964.SS Extension: \f[C]lists_without_preceding_blankline\f[R]
60115965.PP
60125966Allow a list to occur right after a paragraph, with no intervening blank
@@ -6130,7 +6084,7 @@ in several respects:
61306084No blank line is required between consecutive items of the definition
61316085list.
61326086.IP \[bu] 2
6133−To get a \[lq]tight\[rq] or \[lq]compact\[rq] list, omit space between
6087+To get a \[dq]tight\[dq] or \[dq]compact\[dq] list, omit space between
61346088consecutive items; the space between a term and its definition does not
61356089affect anything.
61366090.IP \[bu] 2
@@ -6141,489 +6095,65 @@ be indented four spaces.
61416095Use Project Gutenberg conventions for \f[C]plain\f[R] output: all-caps
61426096for strong emphasis, surround by underscores for regular emphasis, add
61436097extra blank space around headings.
6144−.SS Extension: \f[C]sourcepos\f[R]
6145−.PP
6146−Include source position attributes when parsing \f[C]commonmark\f[R].
6147−For elements that accept attributes, a \f[C]data-pos\f[R] attribute is
6148−added; other elements are placed in a surrounding Div or Span elemnet
6149−with a \f[C]data-pos\f[R] attribute.
61506098.SS Markdown variants
61516099.PP
6152−In addition to pandoc\[cq]s extended Markdown, the following Markdown
6100+In addition to pandoc\[aq]s extended Markdown, the following Markdown
61536101variants are supported:
6154−.IP \[bu] 2
6155−\f[C]markdown_phpextra\f[R] (PHP Markdown Extra)
6156−.IP \[bu] 2
6157−\f[C]markdown_github\f[R] (deprecated GitHub-Flavored Markdown)
6158−.IP \[bu] 2
6159−\f[C]markdown_mmd\f[R] (MultiMarkdown)
6160−.IP \[bu] 2
6161−\f[C]markdown_strict\f[R] (Markdown.pl)
6162−.IP \[bu] 2
6163−\f[C]commonmark\f[R] (CommonMark)
6164−.IP \[bu] 2
6165−\f[C]gfm\f[R] (Github-Flavored Markdown)
6166−.IP \[bu] 2
6167−\f[C]commonmark_x\f[R] (CommonMark with many pandoc extensions)
6168−.PP
6169−To see which extensions are supported for a given format, and which are
6170−enabled by default, you can use the command
6171−.IP
6172−.nf
6173−\f[C]
6174−pandoc --list-extensions=FORMAT
6175−\f[R]
6176−.fi
6177−.PP
6178−where \f[C]FORMAT\f[R] is replaced with the name of the format.
6179−.PP
6180−Note that the list of extensions for \f[C]commonmark\f[R],
6181−\f[C]gfm\f[R], and \f[C]commonmark_x\f[R] are defined relative to
6182−default commonmark.
6183−So, for example, \f[C]backtick_code_blocks\f[R] does not appear as an
6184−extension, since it is enabled by default and cannot be disabled.
6185−.SH CITATIONS
6186−.PP
6187−When the \f[C]--citeproc\f[R] option is used, pandoc can automatically
6188−generate citations and a bibliography in a number of styles.
6189−Basic usage is
6190−.IP
6191−.nf
6192−\f[C]
6193−pandoc --citeproc myinput.txt
6194−\f[R]
6195−.fi
6196−.PP
6197−To use this feature, you will need to have
6198−.IP \[bu] 2
6199−a document containing citations (see Extension: \f[C]citations\f[R]);
6200−.IP \[bu] 2
6201−a source of bibliographic data: either an external bibliography file or
6202−a list of \f[C]references\f[R] in the document\[cq]s YAML metadata
6203−.IP \[bu] 2
6204−optionally, a CSL citation style.
6205−.SS Specifying bibliographic data
6206−.PP
6207−You can specify an external bibliography using the
6208−\f[C]bibliography\f[R] metadata field in a YAML metadata section or the
6209−\f[C]--bibliography\f[R] command line argument.
6210−If you want to use multiple bibliography files, you can supply multiple
6211−\f[C]--bibliography\f[R] arguments or set \f[C]bibliography\f[R]
6212−metadata field to YAML array.
6213−A bibliography may have any of these formats:
6214−.PP
6215−.TS
6216−tab(@);
6217−l l.
6218−T{
6219−Format
6220−T}@T{
6221−File extension
6222−T}
6223−_
6224−T{
6225−BibLaTeX
6226−T}@T{
6227−\&.bib
6228−T}
6229−T{
6230−BibTeX
6231−T}@T{
6232−\&.bibtex
6233−T}
6234−T{
6235−CSL JSON
6236−T}@T{
6237−\&.json
6238−T}
6239−T{
6240−CSL YAML
6241−T}@T{
6242−\&.yaml
6243−T}
6244−.TE
6245−.PP
6246−Note that \f[C].bib\f[R] can be used with both BibTeX and BibLaTeX
6247−files; use the extension \f[C].bibtex\f[R] to force interpretation as
6248−BibTeX.
6249−.PP
6250−In BibTeX and BibLaTeX databases, pandoc parses LaTeX markup inside
6251−fields such as \f[C]title\f[R]; in CSL YAML databases, pandoc Markdown;
6252−and in CSL JSON databases, an HTML-like markup:
6253−.TP
6254−\f[B]\f[CB]<i>...</i>\f[B]\f[R]
6255−italics
6256−.TP
6257−\f[B]\f[CB]<b>...</b>\f[B]\f[R]
6258−bold
6259−.TP
6260−\f[B]\f[CB]<span style=\[dq]font-variant:small-caps;\[dq]>...</span>\f[B]\f[R] or \f[B]\f[CB]<sc>...</sc>\f[B]\f[R]
6261−small capitals
62626102.TP
6263−\f[B]\f[CB]<sub>...</sub>\f[B]\f[R]
6264−subscript
6265−.TP
6266−\f[B]\f[CB]<sup>...</sup>\f[B]\f[R]
6267−superscript
6268−.TP
6269−\f[B]\f[CB]<span class=\[dq]nocase\[dq]>...</span>\f[B]\f[R]
6270−prevent a phrase from being capitalized as title case
6271−.PP
6272−As an alternative to specifying a bibliography file using
6273−\f[C]--bibliography\f[R] or the YAML metadata field
6274−\f[C]bibliography\f[R], you can include the citation data directly in
6275−the \f[C]references\f[R] field of the document\[cq]s YAML metadata.
6276−The field should contain an array of YAML-encoded references, for
6277−example:
6278−.IP
6279−.nf
6280−\f[C]
6281−---
6282−references:
6283−- type: article-journal
6284− id: WatsonCrick1953
6285− author:
6286− - family: Watson
6287− given: J. D.
6288− - family: Crick
6289− given: F. H. C.
6290− issued:
6291− date-parts:
6292− - - 1953
6293− - 4
6294− - 25
6295− title: \[aq]Molecular structure of nucleic acids: a structure for
6296− deoxyribose nucleic acid\[aq]
6297− title-short: Molecular structure of nucleic acids
6298− container-title: Nature
6299− volume: 171
6300− issue: 4356
6301− page: 737-738
6302− DOI: 10.1038/171737a0
6303− URL: https://www.nature.com/articles/171737a0
6304− language: en-GB
6305−\&...
6306−\f[R]
6307−.fi
6308−.PP
6309−If both an external bibliography and inline (YAML metadata) references
6310−are provided, both will be used.
6311−In case of conflicting \f[C]id\f[R]s, the inline references will take
6312−precedence.
6313−.PP
6314−Note that \f[C]pandoc\f[R] can be used to produce such a YAML metadata
6315−section from a BibTeX, BibLaTeX, or CSL JSON bibliography:
6316−.IP
6317−.nf
6318−\f[C]
6319−pandoc chem.bib -s -f biblatex -t markdown
6320−pandoc chem.json -s -f csljson -t markdown
6321−\f[R]
6322−.fi
6323−.PP
6324−Indeed, \f[C]pandoc\f[R] can convert between any of these citation
6325−formats:
6326−.IP
6327−.nf
6328−\f[C]
6329−pandoc chem.bib -s -f biblatex -t csljson
6330−pandoc chem.yaml -s -f markdown -t biblatex
6331−\f[R]
6332−.fi
6333−.PP
6334−Running pandoc on a bibliography file with the \f[C]--citeproc\f[R]
6335−option will create a formatted bibliography in the format of your
6336−choice:
6337−.IP
6338−.nf
6339−\f[C]
6340−pandoc chem.bib -s --citeproc -o chem.html
6341−pandoc chem.bib -s --citeproc -o chem.pdf
6342−\f[R]
6343−.fi
6344−.SS Capitalization in titles
6345−.PP
6346−If you are using a bibtex or biblatex bibliography, then observe the
6347−following rules:
6348−.IP \[bu] 2
6349−English titles should be in title case.
6350−Non-English titles should be in sentence case, and the \f[C]langid\f[R]
6351−field in biblatex should be set to the relevant language.
6352−(The following values are treated as English: \f[C]american\f[R],
6353−\f[C]british\f[R], \f[C]canadian\f[R], \f[C]english\f[R],
6354−\f[C]australian\f[R], \f[C]newzealand\f[R], \f[C]USenglish\f[R], or
6355−\f[C]UKenglish\f[R].)
6356−.IP \[bu] 2
6357−As is standard with bibtex/biblatex, proper names should be protected
6358−with curly braces so that they won\[cq]t be lowercased in styles that
6359−call for sentence case.
6360−For example:
6361−.RS 2
6362−.IP
6363−.nf
6364−\f[C]
6365−title = {My Dinner with {Andre}}
6366−\f[R]
6367−.fi
6368−.RE
6369−.IP \[bu] 2
6370−In addition, words that should remain lowercase (or camelCase) should be
6371−protected:
6372−.RS 2
6373−.IP
6374−.nf
6375−\f[C]
6376−title = {Spin Wave Dispersion on the {nm} Scale}
6377−\f[R]
6378−.fi
6379−.PP
6380−Though this is not necessary in bibtex/biblatex, it is necessary with
6381−citeproc, which stores titles internally in sentence case, and converts
6382−to title case in styles that require it.
6383−Here we protect \[lq]nm\[rq] so that it doesn\[cq]t get converted to
6384−\[lq]Nm\[rq] at this stage.
6385−.RE
6386−.PP
6387−If you are using a CSL bibliography (either JSON or YAML), then observe
6388−the following rules:
6389−.IP \[bu] 2
6390−All titles should be in sentence case.
6391−.IP \[bu] 2
6392−Use the \f[C]language\f[R] field for non-English titles to prevent their
6393−conversion to title case in styles that call for this.
6394−(Conversion happens only if \f[C]language\f[R] begins with \f[C]en\f[R]
6395−or is left empty.)
6396−.IP \[bu] 2
6397−Protect words that should not be converted to title case using this
6398−syntax:
6399−.RS 2
6400−.IP
6401−.nf
6402−\f[C]
6403−Spin wave dispersion on the <span class=\[dq]nocase\[dq]>nm</span> scale
6404−\f[R]
6405−.fi
6406−.RE
6407−.SS Conference Papers, Published vs.\ Unpublished
6408−.PP
6409−For a formally published conference paper, use the biblatex entry type
6410−\f[C]inproceedings\f[R] (which will be mapped to CSL
6411−\f[C]paper-conference\f[R]).
6412−.PP
6413−For an unpublished manuscript, use the biblatex entry type
6414−\f[C]unpublished\f[R] without an \f[C]eventtitle\f[R] field (this entry
6415−type will be mapped to CSL \f[C]manuscript\f[R]).
6416−.PP
6417−For a talk, an unpublished conference paper, or a poster presentation,
6418−use the biblatex entry type \f[C]unpublished\f[R] with an
6419−\f[C]eventtitle\f[R] field (this entry type will be mapped to CSL
6420−\f[C]speech\f[R]).
6421−Use the biblatex \f[C]type\f[R] field to indicate the type,
6422−e.g.\ \[lq]Paper\[rq], or \[lq]Poster\[rq].
6423−\f[C]venue\f[R] and \f[C]eventdate\f[R] may be useful too, though
6424−\f[C]eventdate\f[R] will not be rendered by most CSL styles.
6425−Note that \f[C]venue\f[R] is for the event\[cq]s venue, unlike
6426−\f[C]location\f[R] which describes the publisher\[cq]s location; do not
6427−use the latter for an unpublished conference paper.
6428−.SS Specifying a citation style
6429−.PP
6430−Citations and references can be formatted using any style supported by
6431−the Citation Style Language, listed in the Zotero Style Repository.
6432−These files are specified using the \f[C]--csl\f[R] option or the
6433−\f[C]csl\f[R] (or \f[C]citation-style\f[R]) metadata field.
6434−By default, pandoc will use the Chicago Manual of Style author-date
6435−format.
6436−(You can override this default by copying a CSL style of your choice to
6437−\f[C]default.csl\f[R] in your user data directory.) The CSL project
6438−provides further information on finding and editing styles.
6439−.PP
6440−The \f[C]--citation-abbreviations\f[R] option (or the
6441−\f[C]citation-abbreviations\f[R] metadata field) may be used to specify
6442−a JSON file containing abbreviations of journals that should be used in
6443−formatted bibliographies when \f[C]form=\[dq]short\[dq]\f[R] is
6444−specified.
6445−The format of the file can be illustrated with an example:
6446−.IP
6447−.nf
6448−\f[C]
6449−{ \[dq]default\[dq]: {
6450− \[dq]container-title\[dq]: {
6451− \[dq]Lloyd\[aq]s Law Reports\[dq]: \[dq]Lloyd\[aq]s Rep\[dq],
6452− \[dq]Estates Gazette\[dq]: \[dq]EG\[dq],
6453− \[dq]Scots Law Times\[dq]: \[dq]SLT\[dq]
6454− }
6455− }
6456−}
6457−\f[R]
6458−.fi
6459−.SS Citations in note styles
6460−.PP
6461−Pandoc\[cq]s citation processing is designed to allow you to move
6462−between author-date, numerical, and note styles without modifying the
6463−markdown source.
6464−When you\[cq]re using a note style, avoid inserting footnotes manually.
6465−Instead, insert citations just as you would in an author-date
6466−style\[em]for example,
6467−.IP
6468−.nf
6469−\f[C]
6470−Blah blah [\[at]foo, p. 33].
6471−\f[R]
6472−.fi
6473−.PP
6474−The footnote will be created automatically.
6475−Pandoc will take care of removing the space and moving the note before
6476−or after the period, depending on the setting of
6477−\f[C]notes-after-punctuation\f[R], as described below in Other relevant
6478−metadata fields.
6479−.PP
6480−In some cases you may need to put a citation inside a regular footnote.
6481−Normal citations in footnotes (such as \f[C][\[at]foo, p. 33]\f[R]) will
6482−be rendered in parentheses.
6483−In-text citations (such as \f[C]\[at]foo [p. 33]\f[R]) will be rendered
6484−without parentheses.
6485−(A comma will be added if appropriate.) Thus:
6486−.IP
6487−.nf
6488−\f[C]
6489−[\[ha]1]: Some studies [\[at]foo; \[at]bar, p. 33] show that
6490−frubulicious zoosnaps are quantical. For a survey
6491−of the literature, see \[at]baz [chap. 1].
6492−\f[R]
6493−.fi
6494−.SS Raw content in a style
6495−.PP
6496−To include raw content in a prefix, suffix, delimiter, or term, surround
6497−it with these tags indicating the format:
6498−.IP
6499−.nf
6500−\f[C]
6501−{{jats}}<ref>{{/jats}}
6502−\f[R]
6503−.fi
6504−.PP
6505−Without the tags, the string will be interpreted as a string and escaped
6506−in the output, rather than being passed through raw.
6507−.PP
6508−This feature allows stylesheets to be customized to give different
6509−output for different output formats.
6510−However, stylesheets customized in this way will not be usable by other
6511−CSL implementations.
6512−.SS Placement of the bibliography
6513−.PP
6514−If the style calls for a list of works cited, it will be placed in a div
6515−with id \f[C]refs\f[R], if one exists:
6516−.IP
6517−.nf
6518−\f[C]
6519−::: {#refs}
6520−:::
6521−\f[R]
6522−.fi
6523−.PP
6524−Otherwise, it will be placed at the end of the document.
6525−Generation of the bibliography can be suppressed by setting
6526−\f[C]suppress-bibliography: true\f[R] in the YAML metadata.
6527−.PP
6528−If you wish the bibliography to have a section heading, you can set
6529−\f[C]reference-section-title\f[R] in the metadata, or put the heading at
6530−the beginning of the div with id \f[C]refs\f[R] (if you are using it) or
6531−at the end of your document:
6532−.IP
6533−.nf
6534−\f[C]
6535−last paragraph...
6536−
6537−# References
6538−\f[R]
6539−.fi
6540−.PP
6541−The bibliography will be inserted after this heading.
6542−Note that the \f[C]unnumbered\f[R] class will be added to this heading,
6543−so that the section will not be numbered.
6544−.SS Including uncited items in the bibliography
6545−.PP
6546−If you want to include items in the bibliography without actually citing
6547−them in the body text, you can define a dummy \f[C]nocite\f[R] metadata
6548−field and put the citations there:
6549−.IP
6550−.nf
6551−\f[C]
6552−---
6553−nocite: |
6554− \[at]item1, \[at]item2
6555−\&...
6556−
6557−\[at]item3
6558−\f[R]
6559−.fi
6560−.PP
6561−In this example, the document will contain a citation for
6562−\f[C]item3\f[R] only, but the bibliography will contain entries for
6563−\f[C]item1\f[R], \f[C]item2\f[R], and \f[C]item3\f[R].
6564−.PP
6565−It is possible to create a bibliography with all the citations, whether
6566−or not they appear in the document, by using a wildcard:
6567−.IP
6568−.nf
6569−\f[C]
6570−---
6571−nocite: |
6572− \[at]*
6573−\&...
6574−\f[R]
6575−.fi
6576−.PP
6577−For LaTeX output, you can also use \f[C]natbib\f[R] or
6578−\f[C]biblatex\f[R] to render the bibliography.
6579−In order to do so, specify bibliography files as outlined above, and add
6580−\f[C]--natbib\f[R] or \f[C]--biblatex\f[R] argument to \f[C]pandoc\f[R]
6581−invocation.
6582−Bear in mind that bibliography files have to be in either BibTeX (for
6583−\f[C]--natbib\f[R]) or BibLaTeX (for \f[C]--biblatex\f[R]) format.
6584−.SS Other relevant metadata fields
6585−.PP
6586−A few other metadata fields affect bibliography formatting:
6587−.TP
6588−\f[B]\f[CB]link-citations\f[B]\f[R]
6589−If true, citations will be hyperlinked to the corresponding bibliography
6590−entries (for author-date and numerical styles only).
6591−.TP
6592−\f[B]\f[CB]lang\f[B]\f[R]
6593−The \f[C]lang\f[R] field will affect how the style is localized, for
6594−example in the translation of labels, the use of quotation marks, and
6595−the way items are sorted.
6596−(For backwards compatibility, \f[C]locale\f[R] may be used instead of
6597−\f[C]lang\f[R], but this use is deprecated.)
6598−.RS
6599−.PP
6600−A BCP 47 language tag is expected: for example, \f[C]en\f[R],
6601−\f[C]de\f[R], \f[C]en-US\f[R], \f[C]fr-CA\f[R], \f[C]ug-Cyrl\f[R].
6602−The unicode extension syntax (after \f[C]-u-\f[R]) may be used to
6603−specify options for collation (sorting) more precisely.
6604−Here are some examples:
6605−.IP \[bu] 2
6606−\f[C]zh-u-co-pinyin\f[R] \[en] Chinese with the Pinyin collation.
6607−.IP \[bu] 2
6608−\f[C]es-u-co-trad\f[R] \[en] Spanish with the traditional collation
6609−(with \f[C]Ch\f[R] sorting after \f[C]C\f[R]).
6610−.IP \[bu] 2
6611−\f[C]fr-u-kb\f[R] \[en] French with \[lq]backwards\[rq] accent sorting
6612−(with \f[C]cot\['e]\f[R] sorting after \f[C]c\[^o]te\f[R]).
6613−.IP \[bu] 2
6614−\f[C]en-US-u-kf-upper\f[R] \[en] English with uppercase letters sorting
6615−before lower (default is lower before upper).
6616−.RE
6617−.TP
6618−\f[B]\f[CB]notes-after-punctuation\f[B]\f[R]
6619−If true (the default), pandoc will put footnote citations after
6620−following punctuation.
6621−For example, if the source contains \f[C]blah blah [\[at]jones99].\f[R],
6622−the result will look like \f[C]blah blah.[\[ha]1]\f[R], with the note
6623−moved after the period and the space collapsed.
6624−If false, the space will still be collapsed, but the footnote will not
6625−be moved after the punctuation.
6626−.SH SLIDE SHOWS
6103+\f[B]\f[CB]markdown_phpextra\f[B]\f[R] (PHP Markdown Extra)
6104+\f[C]footnotes\f[R], \f[C]pipe_tables\f[R], \f[C]raw_html\f[R],
6105+\f[C]markdown_attribute\f[R], \f[C]fenced_code_blocks\f[R],
6106+\f[C]definition_lists\f[R], \f[C]intraword_underscores\f[R],
6107+\f[C]header_attributes\f[R], \f[C]link_attributes\f[R],
6108+\f[C]abbreviations\f[R], \f[C]shortcut_reference_links\f[R],
6109+\f[C]spaced_reference_links\f[R].
6110+.TP
6111+\f[B]\f[CB]markdown_github\f[B]\f[R] (deprecated GitHub-Flavored Markdown)
6112+\f[C]pipe_tables\f[R], \f[C]raw_html\f[R], \f[C]fenced_code_blocks\f[R],
6113+\f[C]auto_identifiers\f[R], \f[C]gfm_auto_identifiers\f[R],
6114+\f[C]backtick_code_blocks\f[R], \f[C]autolink_bare_uris\f[R],
6115+\f[C]space_in_atx_header\f[R], \f[C]intraword_underscores\f[R],
6116+\f[C]strikeout\f[R], \f[C]task_lists\f[R], \f[C]emoji\f[R],
6117+\f[C]shortcut_reference_links\f[R], \f[C]angle_brackets_escapable\f[R],
6118+\f[C]lists_without_preceding_blankline\f[R].
6119+.TP
6120+\f[B]\f[CB]markdown_mmd\f[B]\f[R] (MultiMarkdown)
6121+\f[C]pipe_tables\f[R], \f[C]raw_html\f[R], \f[C]markdown_attribute\f[R],
6122+\f[C]mmd_link_attributes\f[R], \f[C]tex_math_double_backslash\f[R],
6123+\f[C]intraword_underscores\f[R], \f[C]mmd_title_block\f[R],
6124+\f[C]footnotes\f[R], \f[C]definition_lists\f[R],
6125+\f[C]all_symbols_escapable\f[R], \f[C]implicit_header_references\f[R],
6126+\f[C]auto_identifiers\f[R], \f[C]mmd_header_identifiers\f[R],
6127+\f[C]shortcut_reference_links\f[R], \f[C]implicit_figures\f[R],
6128+\f[C]superscript\f[R], \f[C]subscript\f[R],
6129+\f[C]backtick_code_blocks\f[R], \f[C]spaced_reference_links\f[R],
6130+\f[C]raw_attribute\f[R].
6131+.TP
6132+\f[B]\f[CB]markdown_strict\f[B]\f[R] (Markdown.pl)
6133+\f[C]raw_html\f[R], \f[C]shortcut_reference_links\f[R],
6134+\f[C]spaced_reference_links\f[R].
6135+.PP
6136+We also support \f[C]commonmark\f[R] and \f[C]gfm\f[R] (GitHub-Flavored
6137+Markdown, which is implemented as a set of extensions on
6138+\f[C]commonmark\f[R]).
6139+.PP
6140+Note, however, that \f[C]commonmark\f[R] and \f[C]gfm\f[R] have limited
6141+support for extensions.
6142+Only those listed below (and \f[C]smart\f[R], \f[C]raw_tex\f[R], and
6143+\f[C]hard_line_breaks\f[R]) will work.
6144+The extensions can, however, all be individually disabled.
6145+Also, \f[C]raw_tex\f[R] only affects \f[C]gfm\f[R] output, not input.
6146+.TP
6147+\f[B]\f[CB]gfm\f[B]\f[R] (GitHub-Flavored Markdown)
6148+\f[C]pipe_tables\f[R], \f[C]raw_html\f[R], \f[C]native_divs\f[R],
6149+\f[C]fenced_code_blocks\f[R], \f[C]auto_identifiers\f[R],
6150+\f[C]gfm_auto_identifiers\f[R], \f[C]backtick_code_blocks\f[R],
6151+\f[C]autolink_bare_uris\f[R], \f[C]space_in_atx_header\f[R],
6152+\f[C]intraword_underscores\f[R], \f[C]strikeout\f[R],
6153+\f[C]task_lists\f[R], \f[C]emoji\f[R],
6154+\f[C]shortcut_reference_links\f[R], \f[C]angle_brackets_escapable\f[R],
6155+\f[C]lists_without_preceding_blankline\f[R].
6156+.SH PRODUCING SLIDE SHOWS WITH PANDOC
66276157.PP
66286158You can use pandoc to produce an HTML + JavaScript slide presentation
66296159that can be viewed via a web browser.
@@ -6632,7 +6162,7 @@ reveal.js.
66326162You can also produce a PDF slide show using LaTeX \f[C]beamer\f[R], or
66336163slides shows in Microsoft PowerPoint format.
66346164.PP
6635−Here\[cq]s the Markdown source for a simple slide show,
6165+Here\[aq]s the Markdown source for a simple slide show,
66366166\f[C]habits.txt\f[R]:
66376167.IP
66386168.nf
@@ -6734,26 +6264,21 @@ A heading at the slide level always starts a new slide.
67346264.IP \[bu] 2
67356265Headings \f[I]below\f[R] the slide level in the hierarchy create
67366266headings \f[I]within\f[R] a slide.
6737−(In beamer, a \[lq]block\[rq] will be created.
6738−If the heading has the class \f[C]example\f[R], an
6739−\f[C]exampleblock\f[R] environment will be used; if it has the class
6740−\f[C]alert\f[R], an \f[C]alertblock\f[R] will be used; otherwise a
6741−regular \f[C]block\f[R] will be used.)
67426267.IP \[bu] 2
67436268Headings \f[I]above\f[R] the slide level in the hierarchy create
6744−\[lq]title slides,\[rq] which just contain the section title and help to
6269+\[dq]title slides,\[dq] which just contain the section title and help to
67456270break the slide show into sections.
67466271Non-slide content under these headings will be included on the title
67476272slide (for HTML slide shows) or in a subsequent slide with the same
67486273title (for beamer).
67496274.IP \[bu] 2
6750−A title page is constructed automatically from the document\[cq]s title
6275+A title page is constructed automatically from the document\[aq]s title
67516276block, if present.
67526277(In the case of beamer, this can be disabled by commenting out some
67536278lines in the default template.)
67546279.PP
67556280These rules are designed to support many different styles of slide show.
6756−If you don\[cq]t care about structuring your slides into sections and
6281+If you don\[aq]t care about structuring your slides into sections and
67576282subsections, you can just use level-1 headings for all each slide.
67586283(In that case, level-1 will be the slide level.) But you can also
67596284structure the slide show into sections, as in the example above.
@@ -6765,8 +6290,8 @@ It is not recommended that you use deeper nesting of section levels with
67656290reveal.js.
67666291.SS Incremental lists
67676292.PP
6768−By default, these writers produce lists that display \[lq]all at
6769−once.\[rq] If you want your lists to display incrementally (one item at
6293+By default, these writers produce lists that display \[dq]all at
6294+once.\[dq] If you want your lists to display incrementally (one item at
67706295a time), use the \f[C]-i\f[R] option.
67716296If you want a particular list to depart from the default, put it in a
67726297\f[C]div\f[R] block with class \f[C]incremental\f[R] or
@@ -6819,7 +6344,7 @@ Note: Neither the \f[C]-i/--incremental\f[R] option nor any of the
68196344methods described here currently works for PowerPoint output.
68206345.SS Inserting pauses
68216346.PP
6822−You can add \[lq]pauses\[rq] within a slide by including a paragraph
6347+You can add \[dq]pauses\[dq] within a slide by including a paragraph
68236348containing three dots, separated by spaces:
68246349.IP
68256350.nf
@@ -6842,7 +6367,7 @@ in \f[C]$DATADIR/s5/default\f[R] (for S5), \f[C]$DATADIR/slidy\f[R] (for
68426367Slidy), or \f[C]$DATADIR/slideous\f[R] (for Slideous), where
68436368\f[C]$DATADIR\f[R] is the user data directory (see \f[C]--data-dir\f[R],
68446369above).
6845−The originals may be found in pandoc\[cq]s system data directory
6370+The originals may be found in pandoc\[aq]s system data directory
68466371(generally \f[C]$CABALDIR/pandoc-VERSION/s5/default\f[R]).
68476372Pandoc will look there for any files it does not find in the user data
68486373directory.
@@ -6972,7 +6497,7 @@ contents...
69726497The class \f[C]onlytextwidth\f[R] sets the \f[C]totalwidth\f[R] to
69736498\f[C]\[rs]textwidth\f[R].
69746499.PP
6975−See Section 12.7 of the Beamer User\[cq]s Guide for more details.
6500+See Section 12.7 of the Beamer User\[aq]s Guide for more details.
69766501.SS Frame attributes in beamer
69776502.PP
69786503Sometimes it is necessary to add the LaTeX \f[C][fragile]\f[R] option to
@@ -6988,7 +6513,7 @@ introducing the slide:
69886513.fi
69896514.PP
69906515All of the other frame attributes described in Section 8.1 of the Beamer
6991−User\[cq]s Guide may also be used: \f[C]allowdisplaybreaks\f[R],
6516+User\[aq]s Guide may also be used: \f[C]allowdisplaybreaks\f[R],
69926517\f[C]allowframebreaks\f[R], \f[C]b\f[R], \f[C]c\f[R], \f[C]t\f[R],
69936518\f[C]environment\f[R], \f[C]label\f[R], \f[C]plain\f[R],
69946519\f[C]shrink\f[R], \f[C]standout\f[R], \f[C]noframenumbering\f[R].
@@ -7013,7 +6538,7 @@ To set an image for a particular reveal.js slide, add
70136538\f[C]{data-background-image=\[dq]/path/to/image\[dq]}\f[R] to the first
70146539slide-level heading on the slide (which may even be empty).
70156540.PP
7016−In reveal.js\[cq]s overview mode, the parallaxBackgroundImage will show
6541+In reveal.js\[aq]s overview mode, the parallaxBackgroundImage will show
70176542up only on the first slide.
70186543.PP
70196544Other reveal.js background settings also work on individual slides,
@@ -7049,7 +6574,7 @@ Slide 1 has background_image.png as its background.
70496574Slide 2 has a special image for its background, even though the heading has no content.
70506575\f[R]
70516576.fi
7052−.SH EPUBS
6577+.SH CREATING EPUBS WITH PANDOC
70536578.SS EPUB Metadata
70546579.PP
70556580EPUB metadata may be specified using the \f[C]--epub-metadata\f[R]
@@ -7103,8 +6628,8 @@ Valid values for \f[C]type\f[R] are \f[C]main\f[R], \f[C]subtitle\f[R],
71036628Either a string value, or an object with fields \f[C]role\f[R],
71046629\f[C]file-as\f[R], and \f[C]text\f[R], or a list of such objects.
71056630Valid values for \f[C]role\f[R] are MARC relators, but pandoc will
7106−attempt to translate the human-readable versions (like \[lq]author\[rq]
7107−and \[lq]editor\[rq]) to the appropriate marc relators.
6631+attempt to translate the human-readable versions (like \[dq]author\[dq]
6632+and \[dq]editor\[dq]) to the appropriate marc relators.
71086633.TP
71096634\f[B]\f[CB]contributor\f[B]\f[R]
71106635Same format as \f[C]creator\f[R].
@@ -7139,16 +6664,6 @@ A string value.
71396664\f[B]\f[CB]rights\f[B]\f[R]
71406665A string value.
71416666.TP
7142−\f[B]\f[CB]belongs-to-collection\f[B]\f[R]
7143−A string value.
7144−identifies the name of a collection to which the EPUB Publication
7145−belongs.
7146−.TP
7147−\f[B]\f[CB]group-position\f[B]\f[R]
7148−The \f[C]group-position\f[R] field indicates the numeric position in
7149−which the EPUB Publication belongs relative to other works belonging to
7150−the same \f[C]belongs-to-collection\f[R] field.
7151−.TP
71526667\f[B]\f[CB]cover-image\f[B]\f[R]
71536668A string value (path to cover image).
71546669.TP
@@ -7303,6 +6818,11 @@ T}@T{
73036818frontmatter
73046819T}
73056820T{
6821+seriespage
6822+T}@T{
6823+frontmatter
6824+T}
6825+T{
73066826appendix
73076827T}@T{
73086828backmatter
@@ -7343,7 +6863,7 @@ For example:
73436863</audio>
73446864\f[R]
73456865.fi
7346−.SH JUPYTER NOTEBOOKS
6866+.SH CREATING JUPYTER NOTEBOOKS WITH PANDOC
73476867.PP
73486868When creating a Jupyter notebook, pandoc will try to infer the notebook
73496869structure.
@@ -7458,7 +6978,7 @@ hello
74586978If you include raw HTML or TeX in an output cell, use the [raw
74596979attribute][Extension: \f[C]fenced_attribute\f[R]], as shown in the last
74606980cell of the example above.
7461−Although pandoc can process \[lq]bare\[rq] raw HTML and TeX, the result
6981+Although pandoc can process \[dq]bare\[dq] raw HTML and TeX, the result
74626982is often interspersed raw elements and normal textual elements, and in
74636983an output cell pandoc expects a single, connected raw block.
74646984To avoid using raw HTML or TeX except when marked explicitly using raw
@@ -7511,10 +7031,10 @@ pandoc --highlight-style my.theme
75117031.fi
75127032.PP
75137033If you are not satisfied with the built-in highlighting, or you want
7514−highlight a language that isn\[cq]t supported, you can use the
7034+highlight a language that isn\[aq]t supported, you can use the
75157035\f[C]--syntax-definition\f[R] option to load a KDE-style XML syntax
75167036definition file.
7517−Before writing your own, have a look at KDE\[cq]s repository of syntax
7037+Before writing your own, have a look at KDE\[aq]s repository of syntax
75187038definitions.
75197039.PP
75207040To disable highlighting, use the \f[C]--no-highlight\f[R] option.
@@ -7523,7 +7043,7 @@ To disable highlighting, use the \f[C]--no-highlight\f[R] option.
75237043Custom styles can be used in the docx and ICML formats.
75247044.SS Output
75257045.PP
7526−By default, pandoc\[cq]s docx and ICML output applies a predefined set
7046+By default, pandoc\[aq]s docx and ICML output applies a predefined set
75277047of styles for blocks such as paragraphs and block quotes, and uses
75287048largely default formatting (italics, bold) for inlines.
75297049This will work for most purposes, especially alongside a
@@ -7544,7 +7064,7 @@ So, for example, using the \f[C]bracketed_spans\f[R] syntax,
75447064\f[R]
75457065.fi
75467066.PP
7547−would produce a docx file with \[lq]Get out\[rq] styled with character
7067+would produce a docx file with \[dq]Get out\[dq] styled with character
75487068style \f[C]Emphatically\f[R].
75497069Similarly, using the \f[C]fenced_divs\f[R] syntax,
75507070.IP
@@ -7575,13 +7095,13 @@ character style (perhaps to change their color), you can write a filter
75757095which will transform all italicized inlines to inlines within an
75767096\f[C]Emphasis\f[R] custom-style \f[C]span\f[R].
75777097.PP
7578−For docx output, you don\[cq]t need to enable any extensions for custom
7098+For docx output, you don\[aq]t need to enable any extensions for custom
75797099styles to work.
75807100.SS Input
75817101.PP
75827102The docx reader, by default, only reads those styles that it can convert
75837103into pandoc elements, either by direct conversion or interpreting the
7584−derivation of the input document\[cq]s styles.
7104+derivation of the input document\[aq]s styles.
75857105.PP
75867106By enabling the \f[C]styles\f[R] extension in the docx reader
75877107(\f[C]-f docx+styles\f[R]), you can produce output that maintains the
@@ -7664,20 +7184,6 @@ need to specify a template manually using \f[C]--template\f[R] or add a
76647184new default template with the name
76657185\f[C]default.NAME_OF_CUSTOM_WRITER.lua\f[R] to the \f[C]templates\f[R]
76667186subdirectory of your user data directory (see Templates).
7667−.SH REPRODUCIBLE BUILDS
7668−.PP
7669−Some of the document formats pandoc targets (such as EPUB, docx, and
7670−ODT) include build timestamps in the generated document.
7671−That means that the files generated on successive builds will differ,
7672−even if the source does not.
7673−To avoid this, set the \f[C]SOURCE_DATE_EPOCH\f[R] environment variable,
7674−and the timestamp will be taken from it instead of the current time.
7675−\f[C]SOURCE_DATE_EPOCH\f[R] should contain an integer unix timestamp
7676−(specifying the number of second since midnight UTC January 1, 1970).
7677−.PP
7678−Some document formats also include a unique identifier.
7679−For EPUB, this can be set explicitly by setting the \f[C]identifier\f[R]
7680−metadata field (see EPUB Metadata, above).
76817187.SH A NOTE ON SECURITY
76827188.PP
76837189If you use pandoc to convert user-contributed content in a web
@@ -7696,7 +7202,7 @@ fully isolates pandoc from your file system, by running the pandoc
76967202operations in the \f[C]PandocPure\f[R] monad.
76977203See the document Using the pandoc API for more details.
76987204.IP "3." 3
7699−Pandoc\[cq]s parsers can exhibit pathological performance on some corner
7205+Pandoc\[aq]s parsers can exhibit pathological performance on some corner
77007206cases.
77017207It is wise to put any pandoc operations under a timeout, to avoid DOS
77027208attacks that exploit these issues.
@@ -7708,16 +7214,16 @@ The HTML generated by pandoc is not guaranteed to be safe.
77087214If \f[C]raw_html\f[R] is enabled for the Markdown input, users can
77097215inject arbitrary HTML.
77107216Even if \f[C]raw_html\f[R] is disabled, users can include dangerous
7711−content in URLs and attributes.
7217+content in attributes for headings, spans, and code blocks.
77127218To be safe, you should run all the generated HTML through an HTML
77137219sanitizer.
77147220.SH AUTHORS
77157221.PP
7716−Copyright 2006\[en]2021 John MacFarlane (jgm\[at]berkeley.edu).
7222+Copyright 2006--2020 John MacFarlane (jgm\[at]berkeley.edu).
77177223Released under the GPL, version 2 or greater.
77187224This software carries no warranty of any kind.
77197225(See COPYRIGHT for full copyright and warranty notices.) For a full list
77207226of contributors, see the file AUTHORS.md in the pandoc source code.
77217227.PP
77227228The Pandoc source code and all documentation may be downloaded
7723−from <https://pandoc.org>.
7229+from <http://pandoc.org>.