git.iko.soy/typeable/pandoc
on master help sign in
Revert "Added built man pages to repository."

This reverts commit eac1fc3750923698db82011b9fda5a0788dfcfea.

commit8c588a98c6a0b09a70422cd3a583cc707e199418 authorJohn MacFarlane <fiddlosopher@gmail.com> dateSun 23 Oct 2011, 18:26 (15 years ago) parenteac1fc3
5 files changed+3−2868
.gitignore+2 man/man1/markdown2pdf.1−170 man/man1/pandoc.1−971 man/man5/pandoc_markdown.5−1726 pandoc.cabal+1−1
.gitignore+2
@@ -3,6 +3,8 @@ README.*
33!README.Debian
44INSTALL.*
55.configure-stamp
6+man/man?/*.1
7+man/man?/*.5
68man/man?/*.html
79*.diff
810pandoc.cabal.orig
man/man1/markdown2pdf.1deleted−170
@@ -1,170 +0,0 @@
1−.TH MARKDOWN2PDF 1 "January 29, 2011" "Pandoc User Manuals"
2−.SH NAME
3−.PP
4−markdown2pdf - converts markdown-formatted text to PDF, using pdflatex
5−.SH SYNOPSIS
6−.PP
7−markdown2pdf [\f[I]options\f[]] [\f[I]input-file\f[]]...
8−.SH DESCRIPTION
9−.PP
10−\f[C]markdown2pdf\f[] converts \f[I]input-file\f[] (or text from
11−standard input) from markdown-formatted plain text to PDF, using
12−\f[C]pandoc\f[] and \f[C]pdflatex\f[].
13−If no output filename is specified (using the \f[C]-o\f[] option), the
14−name of the output file is derived from the input file; thus, for
15−example, if the input file is \f[I]hello.txt\f[], the output file will
16−be \f[I]hello.pdf\f[].
17−If the input is read from STDIN and no output filename is specified, the
18−output file will be named \f[I]stdin.pdf\f[].
19−If multiple input files are specified, they will be concatenated before
20−conversion, and the name of the output file will be derived from the
21−first input file.
22−.PP
23−Input is assumed to be in the UTF-8 character encoding.
24−If your local character encoding is not UTF-8, you should pipe input
25−through \f[C]iconv\f[]:
26−.IP
27−.nf
28−\f[C]
29−iconv\ -t\ utf-8\ input.txt\ |\ markdown2pdf
30−\f[]
31−.fi
32−.PP
33−\f[C]markdown2pdf\f[] assumes that the \f[C]unicode\f[], \f[C]array\f[],
34−\f[C]fancyvrb\f[], \f[C]graphicx\f[], and \f[C]ulem\f[] packages are in
35−latex\[aq]s search path.
36−If these packages are not included in your latex setup, they can be
37−obtained from \f[C]http://ctan.org\f[].
38−.SH OPTIONS
39−.TP
40−.B -o \f[I]FILE\f[], --output=\f[I]FILE\f[]
41−Write output to \f[I]FILE\f[].
42−.RS
43−.RE
44−.TP
45−.B --strict
46−Use strict markdown syntax, with no extensions or variants.
47−.RS
48−.RE
49−.TP
50−.B -N, --number-sections
51−Number section headings in LaTeX output.
52−(Default is not to number them.)
53−.RS
54−.RE
55−.TP
56−.B --listings
57−Use listings package for LaTeX code blocks
58−.RS
59−.RE
60−.TP
61−.B --template=\f[I]FILE\f[]
62−Use \f[I]FILE\f[] as a custom template for the generated document.
63−Implies \f[C]-s\f[].
64−See the section TEMPLATES in \f[C]pandoc\f[](1) for information about
65−template syntax.
66−Use \f[C]pandoc\ -D\ latex\f[] to print the default LaTeX template.
67−.RS
68−.RE
69−.TP
70−.B -V KEY=VAL, --variable=\f[I]KEY:VAL\f[]
71−Set the template variable KEY to the value VAL when rendering the
72−document in standalone mode.
73−Use this to set the font size when using the default LaTeX template:
74−\f[C]-V\ fontsize=12pt\f[].
75−.RS
76−.RE
77−.TP
78−.B -H \f[I]FILE\f[], --include-in-header=\f[I]FILE\f[]
79−Include (LaTeX) contents of \f[I]FILE\f[] at the end of the header.
80−Implies \f[C]-s\f[].
81−.RS
82−.RE
83−.TP
84−.B -B \f[I]FILE\f[], --include-before-body=\f[I]FILE\f[]
85−Include (LaTeX) contents of \f[I]FILE\f[] at the beginning of the
86−document body.
87−.RS
88−.RE
89−.TP
90−.B -A \f[I]FILE\f[], --include-after-body=\f[I]FILE\f[]
91−Include (LaTeX) contents of \f[I]FILE\f[] at the end of the document
92−body.
93−.RS
94−.RE
95−.TP
96−.B --bibliography=\f[I]FILE\f[]
97−Specify bibliography database to be used in resolving citations.
98−The database type will be determined from the extension of
99−\f[I]FILE\f[], which may be \f[C].xml\f[] (MODS format), \f[C].bib\f[]
100−(BibTeX format), or \f[C].json\f[] (citeproc JSON).
101−.RS
102−.RE
103−.TP
104−.B --csl=\f[I]FILE\f[]
105−Specify CSL style to be used in formatting citations and the
106−bibliography.
107−If \f[I]FILE\f[] is not found, pandoc will look for it in
108−.RS
109−.IP
110−.nf
111−\f[C]
112−$HOME/.csl
113−\f[]
114−.fi
115−.PP
116−in unix and
117−.IP
118−.nf
119−\f[C]
120−C:\\Documents\ And\ Settings\\USERNAME\\Application\ Data\\csl
121−\f[]
122−.fi
123−.PP
124−in Windows.
125−If the \f[C]--csl\f[] option is not specified, pandoc will use a default
126−style: either \f[C]default.csl\f[] in the user data directory (see
127−\f[C]--data-dir\f[]), or, if that is not present, the Chicago
128−author-date style.
129−.RE
130−.TP
131−.B --data-dir\f[I]=DIRECTORY\f[]
132−Specify the user data directory to search for pandoc data files.
133−If this option is not specified, the default user data directory will be
134−used:
135−.RS
136−.IP
137−.nf
138−\f[C]
139−$HOME/.pandoc
140−\f[]
141−.fi
142−.PP
143−in unix and
144−.IP
145−.nf
146−\f[C]
147−C:\\Documents\ And\ Settings\\USERNAME\\Application\ Data\\pandoc
148−\f[]
149−.fi
150−.PP
151−in Windows.
152−A \f[C]reference.odt\f[], \f[C]epub.css\f[], \f[C]templates\f[]
153−directory, or \f[C]s5\f[] directory placed in this directory will
154−override pandoc\[aq]s normal defaults.
155−.RE
156−.TP
157−.B --xetex
158−Use xelatex instead of pdflatex to create the PDF.
159−.RS
160−.RE
161−.TP
162−.B --luatex
163−Use lualatex instead of pdflatex to create the PDF.
164−.RS
165−.RE
166−.SH SEE ALSO
167−.PP
168−\f[C]pandoc\f[](1), \f[C]pdflatex\f[](1)
169−.SH AUTHORS
170−John MacFarlane, Paulo Tanimoto, and Recai Oktas.
man/man1/pandoc.1deleted−971
@@ -1,971 +0,0 @@
1−.TH PANDOC 1 "July 30, 2011" "Pandoc"
2−.SH NAME
3−pandoc - general markup converter
4−.SH SYNOPSIS
5−.PP
6−pandoc [\f[I]options\f[]] [\f[I]input-file\f[]]...
7−.SH DESCRIPTION
8−.PP
9−Pandoc is a Haskell library for converting from one markup format to
10−another, and a command-line tool that uses this library.
11−It can read markdown and (subsets of) Textile, reStructuredText, HTML,
12−and LaTeX; and it can write plain text, markdown, reStructuredText,
13−HTML, LaTeX, ConTeXt, RTF, DocBook XML, OpenDocument XML, ODT, GNU
14−Texinfo, MediaWiki markup, EPUB, Textile, groff man pages, Emacs
15−Org-Mode, and Slidy, DZSlides, or S5 HTML slide shows.
16−.PP
17−Pandoc\[aq]s enhanced version of markdown includes syntax for footnotes,
18−tables, flexible ordered lists, definition lists, delimited code blocks,
19−superscript, subscript, strikeout, title blocks, automatic tables of
20−contents, embedded LaTeX math, citations, and markdown inside HTML block
21−elements.
22−(These enhancements, described below under Pandoc\[aq]s markdown, can be
23−disabled using the \f[C]--strict\f[] option.)
24−.PP
25−In contrast to most existing tools for converting markdown to HTML,
26−which use regex substitutions, Pandoc has a modular design: it consists
27−of a set of readers, which parse text in a given format and produce a
28−native representation of the document, and a set of writers, which
29−convert this native representation into a target format.
30−Thus, adding an input or output format requires only adding a reader or
31−writer.
32−.SS Using Pandoc
33−.PP
34−If no \f[I]input-file\f[] is specified, input is read from
35−\f[I]stdin\f[].
36−Otherwise, the \f[I]input-files\f[] are concatenated (with a blank line
37−between each) and used as input.
38−Output goes to \f[I]stdout\f[] by default (though output to
39−\f[I]stdout\f[] is disabled for the \f[C]odt\f[] and \f[C]epub\f[]
40−output formats).
41−For output to a file, use the \f[C]-o\f[] option:
42−.IP
43−.nf
44−\f[C]
45−pandoc\ -o\ output.html\ input.txt
46−\f[]
47−.fi
48−.PP
49−Instead of a file, an absolute URI may be given.
50−In this case pandoc will fetch the content using HTTP:
51−.IP
52−.nf
53−\f[C]
54−pandoc\ -f\ html\ -t\ markdown\ http://www.fsf.org
55−\f[]
56−.fi
57−.PP
58−If multiple input files are given, \f[C]pandoc\f[] will concatenate them
59−all (with blank lines between them) before parsing.
60−.PP
61−The format of the input and output can be specified explicitly using
62−command-line options.
63−The input format can be specified using the \f[C]-r/--read\f[] or
64−\f[C]-f/--from\f[] options, the output format using the
65−\f[C]-w/--write\f[] or \f[C]-t/--to\f[] options.
66−Thus, to convert \f[C]hello.txt\f[] from markdown to LaTeX, you could
67−type:
68−.IP
69−.nf
70−\f[C]
71−pandoc\ -f\ markdown\ -t\ latex\ hello.txt
72−\f[]
73−.fi
74−.PP
75−To convert \f[C]hello.html\f[] from html to markdown:
76−.IP
77−.nf
78−\f[C]
79−pandoc\ -f\ html\ -t\ markdown\ hello.html
80−\f[]
81−.fi
82−.PP
83−Supported output formats are listed below under the \f[C]-t/--to\f[]
84−option.
85−Supported input formats are listed below under the \f[C]-f/--from\f[]
86−option.
87−Note that the \f[C]rst\f[], \f[C]textile\f[], \f[C]latex\f[], and
88−\f[C]html\f[] readers are not complete; there are some constructs that
89−they do not parse.
90−.PP
91−If the input or output format is not specified explicitly,
92−\f[C]pandoc\f[] will attempt to guess it from the extensions of the
93−input and output filenames.
94−Thus, for example,
95−.IP
96−.nf
97−\f[C]
98−pandoc\ -o\ hello.tex\ hello.txt
99−\f[]
100−.fi
101−.PP
102−will convert \f[C]hello.txt\f[] from markdown to LaTeX.
103−If no output file is specified (so that output goes to \f[I]stdout\f[]),
104−or if the output file\[aq]s extension is unknown, the output format will
105−default to HTML.
106−If no input file is specified (so that input comes from \f[I]stdin\f[]),
107−or if the input files\[aq] extensions are unknown, the input format will
108−be assumed to be markdown unless explicitly specified.
109−.PP
110−Pandoc uses the UTF-8 character encoding for both input and output.
111−If your local character encoding is not UTF-8, you should pipe input and
112−output through \f[C]iconv\f[]:
113−.IP
114−.nf
115−\f[C]
116−iconv\ -t\ utf-8\ input.txt\ |\ pandoc\ |\ iconv\ -f\ utf-8
117−\f[]
118−.fi
119−.SH OPTIONS
120−.TP
121−.B \f[C]-f\f[] \f[I]FORMAT\f[], \f[C]-r\f[] \f[I]FORMAT\f[],
122−\f[C]--from=\f[]\f[I]FORMAT\f[], \f[C]--read=\f[]\f[I]FORMAT\f[]
123−Specify input format.
124−\f[I]FORMAT\f[] can be \f[C]native\f[] (native Haskell), \f[C]json\f[]
125−(JSON version of native AST), \f[C]markdown\f[] (markdown),
126−\f[C]textile\f[] (Textile), \f[C]rst\f[] (reStructuredText),
127−\f[C]html\f[] (HTML), or \f[C]latex\f[] (LaTeX).
128−If \f[C]+lhs\f[] is appended to \f[C]markdown\f[], \f[C]rst\f[], or
129−\f[C]latex\f[], the input will be treated as literate Haskell source:
130−see Literate Haskell support, below.
131−.RS
132−.RE
133−.TP
134−.B \f[C]-t\f[] \f[I]FORMAT\f[], \f[C]-w\f[] \f[I]FORMAT\f[],
135−\f[C]--to=\f[]\f[I]FORMAT\f[], \f[C]--write=\f[]\f[I]FORMAT\f[]
136−Specify output format.
137−\f[I]FORMAT\f[] can be \f[C]native\f[] (native Haskell), \f[C]json\f[]
138−(JSON version of native AST), \f[C]plain\f[] (plain text),
139−\f[C]markdown\f[] (markdown), \f[C]rst\f[] (reStructuredText),
140−\f[C]html\f[] (HTML), \f[C]latex\f[] (LaTeX), \f[C]context\f[]
141−(ConTeXt), \f[C]man\f[] (groff man), \f[C]mediawiki\f[] (MediaWiki
142−markup), \f[C]textile\f[] (Textile), \f[C]org\f[] (Emacs Org-Mode),
143−\f[C]texinfo\f[] (GNU Texinfo), \f[C]docbook\f[] (DocBook XML),
144−\f[C]opendocument\f[] (OpenDocument XML), \f[C]odt\f[] (OpenOffice text
145−document), \f[C]epub\f[] (EPUB book), \f[C]slidy\f[] (Slidy HTML and
146−javascript slide show), \f[C]dzslides\f[] (HTML5 + javascript slide
147−show), \f[C]s5\f[] (S5 HTML and javascript slide show), or \f[C]rtf\f[]
148−(rich text format).
149−Note that \f[C]odt\f[] and \f[C]epub\f[] output will not be directed to
150−\f[I]stdout\f[]; an output filename must be specified using the
151−\f[C]-o/--output\f[] option.
152−If \f[C]+lhs\f[] is appended to \f[C]markdown\f[], \f[C]rst\f[],
153−\f[C]latex\f[], or \f[C]html\f[], the output will be rendered as
154−literate Haskell source: see Literate Haskell support, below.
155−.RS
156−.RE
157−.TP
158−.B \f[C]-s\f[], \f[C]--standalone\f[]
159−Produce output with an appropriate header and footer (e.g.
160−a standalone HTML, LaTeX, or RTF file, not a fragment).
161−.RS
162−.RE
163−.TP
164−.B \f[C]-o\f[] \f[I]FILE\f[], \f[C]--output=\f[]\f[I]FILE\f[]
165−Write output to \f[I]FILE\f[] instead of \f[I]stdout\f[].
166−If \f[I]FILE\f[] is \f[C]-\f[], output will go to \f[I]stdout\f[].
167−(Exception: if the output format is \f[C]odt\f[] or \f[C]epub\f[],
168−output to stdout is disabled.)
169−.RS
170−.RE
171−.TP
172−.B \f[C]-p\f[], \f[C]--preserve-tabs\f[]
173−Preserve tabs instead of converting them to spaces (the default).
174−.RS
175−.RE
176−.TP
177−.B \f[C]--tab-stop=\f[]\f[I]NUMBER\f[]
178−Specify the number of spaces per tab (default is 4).
179−.RS
180−.RE
181−.TP
182−.B \f[C]--strict\f[]
183−Use strict markdown syntax, with no pandoc extensions or variants.
184−When the input format is HTML, this means that constructs that have no
185−equivalents in standard markdown (e.g.
186−definition lists or strikeout text) will be parsed as raw HTML.
187−.RS
188−.RE
189−.TP
190−.B \f[C]--normalize\f[]
191−Normalize the document after reading: merge adjacent \f[C]Str\f[] or
192−\f[C]Emph\f[] elements, for example, and remove repeated
193−\f[C]Space\f[]s.
194−.RS
195−.RE
196−.TP
197−.B \f[C]--reference-links\f[]
198−Use reference-style links, rather than inline links, in writing markdown
199−or reStructuredText.
200−By default inline links are used.
201−.RS
202−.RE
203−.TP
204−.B \f[C]-R\f[], \f[C]--parse-raw\f[]
205−Parse untranslatable HTML codes and LaTeX environments as raw HTML or
206−LaTeX, instead of ignoring them.
207−Affects only HTML and LaTeX input.
208−Raw HTML can be printed in markdown, reStructuredText, HTML, Slidy,
209−DZSlides, and S5 output; raw LaTeX can be printed in markdown,
210−reStructuredText, LaTeX, and ConTeXt output.
211−The default is for the readers to omit untranslatable HTML codes and
212−LaTeX environments.
213−(The LaTeX reader does pass through untranslatable LaTeX
214−\f[I]commands\f[], even if \f[C]-R\f[] is not specified.)
215−.RS
216−.RE
217−.TP
218−.B \f[C]-S\f[], \f[C]--smart\f[]
219−Produce typographically correct output, converting straight quotes to
220−curly quotes, \f[C]---\f[] and \f[C]--\f[] to dashes, ande \f[C]...\f[]
221−to ellipses.
222−Nonbreaking spaces are inserted after certain abbreviations, such as
223−"Mr." (Note: This option is significant only when the input format is
224−\f[C]markdown\f[] or \f[C]textile\f[].
225−It is selected automatically when the input format is \f[C]textile\f[]
226−or the output format is \f[C]latex\f[] or \f[C]context\f[].)
227−.RS
228−.RE
229−.TP
230−.B \f[C]-5\f[], \f[C]--html5\f[]
231−Produce HTML5 instead of HTML4.
232−This option has no effect for writers other than \f[C]html\f[].
233−.RS
234−.RE
235−.TP
236−.B \f[C]-m\f[] [\f[I]URL\f[]], \f[C]--latexmathml\f[][=\f[I]URL\f[]]
237−Use the LaTeXMathML script to display embedded TeX math in HTML output.
238−To insert a link to a local copy of the \f[C]LaTeXMathML.js\f[] script,
239−provide a \f[I]URL\f[].
240−If no \f[I]URL\f[] is provided, the contents of the script will be
241−inserted directly into the HTML header, preserving portability at the
242−price of efficiency.
243−If you plan to use math on several pages, it is much better to link to a
244−copy of the script, so it can be cached.
245−.RS
246−.RE
247−.TP
248−.B \f[C]--mathml\f[][=\f[I]URL\f[]]
249−Convert TeX math to MathML.
250−In standalone mode, a small javascript (or a link to such a script if a
251−\f[I]URL\f[] is supplied) will be inserted that allows the MathML to be
252−viewed on some browsers.
253−.RS
254−.RE
255−.TP
256−.B \f[C]--jsmath\f[][=\f[I]URL\f[]]
257−Use jsMath to display embedded TeX math in HTML output.
258−The \f[I]URL\f[] should point to the jsMath load script (e.g.
259−\f[C]jsMath/easy/load.js\f[]); if provided, it will be linked to in the
260−header of standalone HTML documents.
261−If a \f[I]URL\f[] is not provided, no link to the jsMath load script
262−will be inserted; it is then up to the author to provide such a link in
263−the HTML template.
264−.RS
265−.RE
266−.TP
267−.B \f[C]--mathjax\f[][=\f[I]URL\f[]]
268−Use MathJax to display embedded TeX math in HTML output.
269−The \f[I]URL\f[] should point to the \f[C]MathJax.js\f[] load script.
270−If a \f[I]URL\f[] is not provided, a link to the MathJax CDN will be
271−inserted.
272−.RS
273−.RE
274−.TP
275−.B \f[C]--gladtex\f[]
276−Enclose TeX math in \f[C]<eq>\f[] tags in HTML output.
277−These can then be processed by gladTeX to produce links to images of the
278−typeset formulas.
279−.RS
280−.RE
281−.TP
282−.B \f[C]--mimetex\f[][=\f[I]URL\f[]]
283−Render TeX math using the mimeTeX CGI script.
284−If \f[I]URL\f[] is not specified, it is assumed that the script is at
285−\f[C]/cgi-bin/mimetex.cgi\f[].
286−.RS
287−.RE
288−.TP
289−.B \f[C]--webtex\f[][=\f[I]URL\f[]]
290−Render TeX formulas using an external script that converts TeX formulas
291−to images.
292−The formula will be concatenated with the URL provided.
293−If \f[I]URL\f[] is not specified, the Google Chart API will be used.
294−.RS
295−.RE
296−.TP
297−.B \f[C]-i\f[], \f[C]--incremental\f[]
298−Make list items in Slidy, DZSlides or S5 display incrementally (one by
299−one).
300−The default is for lists to be displayed all at once.
301−.RS
302−.RE
303−.TP
304−.B \f[C]--offline\f[]
305−Include all the CSS and javascript needed for a Slidy or S5 slide show
306−in the output, so that the slide show will work even when no internet
307−connection is available.
308−.RS
309−.RE
310−.TP
311−.B \f[C]--chapters\f[]
312−Treat top-level headers as chapters in LaTeX, ConTeXt, and DocBook
313−output.
314−When the LaTeX template uses the report, book, or memoir class, this
315−option is implied.
316−.RS
317−.RE
318−.TP
319−.B \f[C]-N\f[], \f[C]--number-sections\f[]
320−Number section headings in LaTeX, ConTeXt, or HTML output.
321−By default, sections are not numbered.
322−.RS
323−.RE
324−.TP
325−.B \f[C]--listings\f[]
326−Use listings package for LaTeX code blocks
327−.RS
328−.RE
329−.TP
330−.B \f[C]--section-divs\f[]
331−Wrap sections in \f[C]<div>\f[] tags (or \f[C]<section>\f[] tags in
332−HTML5), and attach identifiers to the enclosing \f[C]<div>\f[] (or
333−\f[C]<section>\f[]) rather than the header itself.
334−See Section identifiers, below.
335−.RS
336−.RE
337−.TP
338−.B \f[C]--no-wrap\f[]
339−Disable text wrapping in output.
340−By default, text is wrapped appropriately for the output format.
341−.RS
342−.RE
343−.TP
344−.B \f[C]--columns\f[]=\f[I]NUMBER\f[]
345−Specify length of lines in characters (for text wrapping).
346−.RS
347−.RE
348−.TP
349−.B \f[C]--ascii\f[]
350−Use only ascii characters in output.
351−Currently supported only for HTML output (which uses numerical entities
352−instead of UTF-8 when this option is selected).
353−.RS
354−.RE
355−.TP
356−.B \f[C]--email-obfuscation=\f[]\f[I]none|javascript|references\f[]
357−Specify a method for obfuscating \f[C]mailto:\f[] links in HTML
358−documents.
359−\f[I]none\f[] leaves \f[C]mailto:\f[] links as they are.
360−\f[I]javascript\f[] obfuscates them using javascript.
361−\f[I]references\f[] obfuscates them by printing their letters as decimal
362−or hexadecimal character references.
363−If \f[C]--strict\f[] is specified, \f[I]references\f[] is used
364−regardless of the presence of this option.
365−.RS
366−.RE
367−.TP
368−.B \f[C]--id-prefix\f[]=\f[I]STRING\f[]
369−Specify a prefix to be added to all automatically generated identifiers
370−in HTML output.
371−This is useful for preventing duplicate identifiers when generating
372−fragments to be included in other pages.
373−.RS
374−.RE
375−.TP
376−.B \f[C]--indented-code-classes=\f[]\f[I]CLASSES\f[]
377−Specify classes to use for indented code blocks--for example,
378−\f[C]perl,numberLines\f[] or \f[C]haskell\f[].
379−Multiple classes may be separated by spaces or commas.
380−.RS
381−.RE
382−.TP
383−.B \f[C]--toc\f[], \f[C]--table-of-contents\f[]
384−Include an automatically generated table of contents (or, in the case of
385−\f[C]latex\f[], \f[C]context\f[], and \f[C]rst\f[], an instruction to
386−create one) in the output document.
387−This option has no effect on \f[C]man\f[], \f[C]docbook\f[],
388−\f[C]slidy\f[], or \f[C]s5\f[] output.
389−.RS
390−.RE
391−.TP
392−.B \f[C]--base-header-level=\f[]\f[I]NUMBER\f[]
393−Specify the base level for headers (defaults to 1).
394−.RS
395−.RE
396−.TP
397−.B \f[C]--template=\f[]\f[I]FILE\f[]
398−Use \f[I]FILE\f[] as a custom template for the generated document.
399−Implies \f[C]--standalone\f[].
400−See Templates below for a description of template syntax.
401−If no extension is specified, an extension corresponding to the writer
402−will be added, so that \f[C]--template=special\f[] looks for
403−\f[C]special.html\f[] for HTML output.
404−If the template is not found, pandoc will search for it in the user data
405−directory (see \f[C]--data-dir\f[]).
406−If this option is not used, a default template appropriate for the
407−output format will be used (see \f[C]-D/--print-default-template\f[]).
408−.RS
409−.RE
410−.TP
411−.B \f[C]-V\f[] \f[I]KEY=VAL\f[], \f[C]--variable=\f[]\f[I]KEY:VAL\f[]
412−Set the template variable \f[I]KEY\f[] to the value \f[I]VAL\f[] when
413−rendering the document in standalone mode.
414−This is generally only useful when the \f[C]--template\f[] option is
415−used to specify a custom template, since pandoc automatically sets the
416−variables used in the default templates.
417−.RS
418−.RE
419−.TP
420−.B \f[C]-c\f[] \f[I]URL\f[], \f[C]--css=\f[]\f[I]URL\f[]
421−Link to a CSS style sheet.
422−.RS
423−.RE
424−.TP
425−.B \f[C]-H\f[] \f[I]FILE\f[], \f[C]--include-in-header=\f[]\f[I]FILE\f[]
426−Include contents of \f[I]FILE\f[], verbatim, at the end of the header.
427−This can be used, for example, to include special CSS or javascript in
428−HTML documents.
429−This option can be used repeatedly to include multiple files in the
430−header.
431−They will be included in the order specified.
432−Implies \f[C]--standalone\f[].
433−.RS
434−.RE
435−.TP
436−.B \f[C]-B\f[] \f[I]FILE\f[],
437−\f[C]--include-before-body=\f[]\f[I]FILE\f[]
438−Include contents of \f[I]FILE\f[], verbatim, at the beginning of the
439−document body (e.g.
440−after the \f[C]<body>\f[] tag in HTML, or the \f[C]\\begin{document}\f[]
441−command in LaTeX).
442−This can be used to include navigation bars or banners in HTML
443−documents.
444−This option can be used repeatedly to include multiple files.
445−They will be included in the order specified.
446−Implies \f[C]--standalone\f[].
447−.RS
448−.RE
449−.TP
450−.B \f[C]-A\f[] \f[I]FILE\f[],
451−\f[C]--include-after-body=\f[]\f[I]FILE\f[]
452−Include contents of \f[I]FILE\f[], verbatim, at the end of the document
453−body (before the \f[C]</body>\f[] tag in HTML, or the
454−\f[C]\\end{document}\f[] command in LaTeX).
455−This option can be be used repeatedly to include multiple files.
456−They will be included in the order specified.
457−Implies \f[C]--standalone\f[].
458−.RS
459−.RE
460−.TP
461−.B \f[C]--reference-odt=\f[]\f[I]FILE\f[]
462−Use the specified file as a style reference in producing an ODT.
463−For best results, the reference ODT should be a modified version of an
464−ODT produced using pandoc.
465−The contents of the reference ODT are ignored, but its stylesheets are
466−used in the new ODT.
467−If no reference ODT is specified on the command line, pandoc will look
468−for a file \f[C]reference.odt\f[] in the user data directory (see
469−\f[C]--data-dir\f[]).
470−If this is not found either, sensible defaults will be used.
471−.RS
472−.RE
473−.TP
474−.B \f[C]--epub-stylesheet=\f[]\f[I]FILE\f[]
475−Use the specified CSS file to style the EPUB.
476−If no stylesheet is specified, pandoc will look for a file
477−\f[C]epub.css\f[] in the user data directory (see \f[C]--data-dir\f[],
478−below).
479−If it is not found there, sensible defaults will be used.
480−.RS
481−.RE
482−.TP
483−.B \f[C]--epub-cover-image=\f[]\f[I]FILE\f[]
484−Use the specified image as the EPUB cover.
485−It is recommended that the image be less than 1000px in width and
486−height.
487−.RS
488−.RE
489−.TP
490−.B \f[C]--epub-metadata=\f[]\f[I]FILE\f[]
491−Look in the specified XML file for metadata for the EPUB.
492−The file should contain a series of Dublin Core elements, as documented
493−at \f[C]http://dublincore.org/documents/dces/\f[].
494−For example:
495−.RS
496−.IP
497−.nf
498−\f[C]
499−\ <dc:rights>Creative\ Commons</dc:rights>
500−\ <dc:language>es-AR</dc:language>
501−\f[]
502−.fi
503−.PP
504−By default, pandoc will include the following metadata elements:
505−\f[C]<dc:title>\f[] (from the document title), \f[C]<dc:creator>\f[]
506−(from the document authors), \f[C]<dc:language>\f[] (from the locale),
507−and \f[C]<dc:identifier\ id="BookId">\f[] (a randomly generated UUID).
508−Any of these may be overridden by elements in the metadata file.
509−.RE
510−.TP
511−.B \f[C]-D\f[] \f[I]FORMAT\f[],
512−\f[C]--print-default-template=\f[]\f[I]FORMAT\f[]
513−Print the default template for an output \f[I]FORMAT\f[].
514−(See \f[C]-t\f[] for a list of possible \f[I]FORMAT\f[]s.)
515−.RS
516−.RE
517−.TP
518−.B \f[C]-T\f[] \f[I]STRING\f[], \f[C]--title-prefix=\f[]\f[I]STRING\f[]
519−Specify \f[I]STRING\f[] as a prefix at the beginning of the title that
520−appears in the HTML header (but not in the title as it appears at the
521−beginning of the HTML body).
522−Implies \f[C]--standalone\f[].
523−.RS
524−.RE
525−.TP
526−.B \f[C]--bibliography=\f[]\f[I]FILE\f[]
527−Specify bibliography database to be used in resolving citations.
528−The database type will be determined from the extension of
529−\f[I]FILE\f[], which may be \f[C].mods\f[] (MODS format), \f[C].bib\f[]
530−(BibTeX/BibLaTeX format), \f[C].ris\f[] (RIS format), \f[C].enl\f[]
531−(EndNote format), \f[C].xml\f[] (EndNote XML format), \f[C].wos\f[] (ISI
532−format), \f[C].medline\f[] (MEDLINE format), \f[C].copac\f[] (Copac
533−format), or \f[C].json\f[] (citeproc JSON).
534−If you want to use multiple bibliographies, just use this option
535−repeatedly.
536−.RS
537−.RE
538−.TP
539−.B \f[C]--csl=\f[]\f[I]FILE\f[]
540−Specify CSL style to be used in formatting citations and the
541−bibliography.
542−If \f[I]FILE\f[] is not found, pandoc will look for it in
543−.RS
544−.IP
545−.nf
546−\f[C]
547−$HOME/.csl
548−\f[]
549−.fi
550−.PP
551−in unix and
552−.IP
553−.nf
554−\f[C]
555−C:\\Documents\ And\ Settings\\USERNAME\\Application\ Data\\csl
556−\f[]
557−.fi
558−.PP
559−in Windows.
560−If the \f[C]--csl\f[] option is not specified, pandoc will use a default
561−style: either \f[C]default.csl\f[] in the user data directory (see
562−\f[C]--data-dir\f[]), or, if that is not present, the Chicago
563−author-date style.
564−.RE
565−.TP
566−.B \f[C]--natbib\f[]
567−Use natbib for citations in LaTeX output.
568−.RS
569−.RE
570−.TP
571−.B \f[C]--biblatex\f[]
572−Use biblatex for citations in LaTeX output.
573−.RS
574−.RE
575−.TP
576−.B \f[C]--data-dir=\f[]\f[I]DIRECTORY\f[]
577−Specify the user data directory to search for pandoc data files.
578−If this option is not specified, the default user data directory will be
579−used:
580−.RS
581−.IP
582−.nf
583−\f[C]
584−$HOME/.pandoc
585−\f[]
586−.fi
587−.PP
588−in unix and
589−.IP
590−.nf
591−\f[C]
592−C:\\Documents\ And\ Settings\\USERNAME\\Application\ Data\\pandoc
593−\f[]
594−.fi
595−.PP
596−in Windows.
597−A \f[C]reference.odt\f[], \f[C]epub.css\f[], \f[C]templates\f[]
598−directory, or \f[C]s5\f[] directory placed in this directory will
599−override pandoc\[aq]s normal defaults.
600−.RE
601−.TP
602−.B \f[C]--dump-args\f[]
603−Print information about command-line arguments to \f[I]stdout\f[], then
604−exit.
605−This option is intended primarily for use in wrapper scripts.
606−The first line of output contains the name of the output file specified
607−with the \f[C]-o\f[] option, or \f[C]-\f[] (for \f[I]stdout\f[]) if no
608−output file was specified.
609−The remaining lines contain the command-line arguments, one per line, in
610−the order they appear.
611−These do not include regular Pandoc options and their arguments, but do
612−include any options appearing after a \f[C]--\f[] separator at the end
613−of the line.
614−.RS
615−.RE
616−.TP
617−.B \f[C]--ignore-args\f[]
618−Ignore command-line arguments (for use in wrapper scripts).
619−Regular Pandoc options are not ignored.
620−Thus, for example,
621−.RS
622−.IP
623−.nf
624−\f[C]
625−pandoc\ --ignore-args\ -o\ foo.html\ -s\ foo.txt\ --\ -e\ latin1
626−\f[]
627−.fi
628−.PP
629−is equivalent to
630−.IP
631−.nf
632−\f[C]
633−pandoc\ -o\ foo.html\ -s
634−\f[]
635−.fi
636−.RE
637−.TP
638−.B \f[C]-v\f[], \f[C]--version\f[]
639−Print version.
640−.RS
641−.RE
642−.TP
643−.B \f[C]-h\f[], \f[C]--help\f[]
644−Show usage message.
645−.RS
646−.RE
647−.SH TEMPLATES
648−.PP
649−When the \f[C]-s/--standalone\f[] option is used, pandoc uses a template
650−to add header and footer material that is needed for a self-standing
651−document.
652−To see the default template that is used, just type
653−.IP
654−.nf
655−\f[C]
656−pandoc\ -D\ FORMAT
657−\f[]
658−.fi
659−.PP
660−where \f[C]FORMAT\f[] is the name of the output format.
661−A custom template can be specified using the \f[C]--template\f[] option.
662−You can also override the system default templates for a given output
663−format \f[C]FORMAT\f[] by putting a file
664−\f[C]templates/default.FORMAT\f[] in the user data directory (see
665−\f[C]--data-dir\f[], above).
666−.PP
667−Templates may contain \f[I]variables\f[].
668−Variable names are sequences of alphanumerics, \f[C]-\f[], and
669−\f[C]_\f[], starting with a letter.
670−A variable name surrounded by \f[C]$\f[] signs will be replaced by its
671−value.
672−For example, the string \f[C]$title$\f[] in
673−.IP
674−.nf
675−\f[C]
676−<title>$title$</title>
677−\f[]
678−.fi
679−.PP
680−will be replaced by the document title.
681−.PP
682−To write a literal \f[C]$\f[] in a template, use \f[C]$$\f[].
683−.PP
684−Some variables are set automatically by pandoc.
685−These vary somewhat depending on the output format, but include:
686−.TP
687−.B \f[C]header-includes\f[]
688−contents specified by \f[C]-H/--include-in-header\f[] (may have multiple
689−values)
690−.RS
691−.RE
692−.TP
693−.B \f[C]toc\f[]
694−non-null value if \f[C]--toc/--table-of-contents\f[] was specified
695−.RS
696−.RE
697−.TP
698−.B \f[C]include-before\f[]
699−contents specified by \f[C]-B/--include-before-body\f[] (may have
700−multiple values)
701−.RS
702−.RE
703−.TP
704−.B \f[C]include-after\f[]
705−contents specified by \f[C]-A/--include-after-body\f[] (may have
706−multiple values)
707−.RS
708−.RE
709−.TP
710−.B \f[C]body\f[]
711−body of document
712−.RS
713−.RE
714−.TP
715−.B \f[C]title\f[]
716−title of document, as specified in title block
717−.RS
718−.RE
719−.TP
720−.B \f[C]author\f[]
721−author of document, as specified in title block (may have multiple
722−values)
723−.RS
724−.RE
725−.TP
726−.B \f[C]date\f[]
727−date of document, as specified in title block
728−.RS
729−.RE
730−.TP
731−.B \f[C]lang\f[]
732−language code for HTML documents
733−.RS
734−.RE
735−.TP
736−.B \f[C]slidy-url\f[]
737−base URL for Slidy documents (defaults to
738−\f[C]http://www.w3.org/Talks/Tools/Slidy2\f[])
739−.RS
740−.RE
741−.TP
742−.B \f[C]s5-url\f[]
743−base URL for S5 documents (defaults to \f[C]ui/default\f[])
744−.RS
745−.RE
746−.PP
747−Variables may be set at the command line using the
748−\f[C]-V/--variable\f[] option.
749−This allows users to include custom variables in their templates.
750−.PP
751−Templates may contain conditionals.
752−The syntax is as follows:
753−.IP
754−.nf
755−\f[C]
756−$if(variable)$
757−X
758−$else$
759−Y
760−$endif$
761−\f[]
762−.fi
763−.PP
764−This will include \f[C]X\f[] in the template if \f[C]variable\f[] has a
765−non-null value; otherwise it will include \f[C]Y\f[].
766−\f[C]X\f[] and \f[C]Y\f[] are placeholders for any valid template text,
767−and may include interpolated variables or other conditionals.
768−The \f[C]$else$\f[] section may be omitted.
769−.PP
770−When variables can have multiple values (for example, \f[C]author\f[] in
771−a multi-author document), you can use the \f[C]$for$\f[] keyword:
772−.IP
773−.nf
774−\f[C]
775−$for(author)$
776−<meta\ name="author"\ content="$author$"\ />
777−$endfor$
778−\f[]
779−.fi
780−.PP
781−You can optionally specify a separator to be used between consecutive
782−items:
783−.IP
784−.nf
785−\f[C]
786−$for(author)$$author$$sep$,\ $endfor$
787−\f[]
788−.fi
789−.PP
790−If you use custom templates, you may need to revise them as pandoc
791−changes.
792−We recommend tracking the changes in the default templates, and
793−modifying your custom templates accordingly.
794−An easy way to do this is to fork the pandoc-templates repository
795−(\f[C]http://github.com/jgm/pandoc-templates\f[]) and merge in changes
796−after each pandoc release.
797−.SH PRODUCING HTML SLIDE SHOWS WITH PANDOC
798−.PP
799−You can use Pandoc to produce an HTML + javascript slide presentation
800−that can be viewed via a web browser.
801−There are three ways to do this, using S5, DZSlides, or Slidy.
802−.PP
803−Here\[aq]s the markdown source for a simple slide show,
804−\f[C]eating.txt\f[]:
805−.IP
806−.nf
807−\f[C]
808−%\ Eating\ Habits
809−%\ John\ Doe
810−%\ March\ 22,\ 2005
811−
812−#\ In\ the\ morning
813−
814−-\ Eat\ eggs
815−-\ Drink\ coffee
816−
817−#\ In\ the\ evening
818−
819−-\ Eat\ spaghetti
820−-\ Drink\ wine
821−
822−--------------------------
823−
824−![picture\ of\ spaghetti](images/spaghetti.jpg)
825−\f[]
826−.fi
827−.PP
828−To produce the slide show, simply type
829−.IP
830−.nf
831−\f[C]
832−pandoc\ -w\ s5\ -s\ eating.txt\ >\ eating.html
833−\f[]
834−.fi
835−.PP
836−for S5, or
837−.IP
838−.nf
839−\f[C]
840−pandoc\ -w\ slidy\ -s\ eating.txt\ >\ eating.html
841−\f[]
842−.fi
843−.PP
844−for Slidy, or
845−.IP
846−.nf
847−\f[C]
848−pandoc\ -w\ dzslides\ -s\ eating.txt\ >\ eating.html
849−\f[]
850−.fi
851−.PP
852−for DZSlides.
853−.PP
854−A title page is constructed automatically from the document\[aq]s title
855−block.
856−Each level-one header and horizontal rule begins a new slide.
857−.PP
858−For Slidy and S5, the file produced by pandoc with the
859−\f[C]-s/--standalone\f[] option embeds a link to javascripts and CSS
860−files, which are assumed to be available at the relative path
861−\f[C]ui/default\f[] (for S5) or at the Slidy website at \f[C]w3.org\f[]
862−(for Slidy).
863−(These paths can be changed by setting the \f[C]slidy-url\f[] or
864−\f[C]s5-url\f[] variables; see \f[C]--variable\f[], above.)
865− If the \f[C]--offline\f[] option is specified, the scripts and CSS will
866−be included directly in the generated file, so that it may be used
867−offline.
868−For DZSlides, the (relatively short) javascript and css are included in
869−the file by default.
870−.PP
871−You can change the style of the slides by putting customized CSS files
872−in \f[C]$DATADIR/s5/default\f[] (for S5) or \f[C]$DATADIR/slidy\f[] (for
873−Slidy), where \f[C]$DATADIR\f[] is the user data directory (see
874−\f[C]--data-dir\f[], above).
875−The originals may be found in pandoc\[aq]s system data directory
876−(generally \f[C]$CABALDIR/pandoc-VERSION/s5/default\f[]).
877−Pandoc will look there for any files it does not find in the user data
878−directory.
879−.SS Incremental lists
880−.PP
881−By default, these writers produces lists that display "all at once." If
882−you want your lists to display incrementally (one item at a time), use
883−the \f[C]-i\f[] option.
884−If you want a particular list to depart from the default (that is, to
885−display incrementally without the \f[C]-i\f[] option and all at once
886−with the \f[C]-i\f[] option), put it in a block quote:
887−.IP
888−.nf
889−\f[C]
890−>\ -\ Eat\ spaghetti
891−>\ -\ Drink\ wine
892−\f[]
893−.fi
894−.PP
895−In this way incremental and nonincremental lists can be mixed in a
896−single document.
897−.SH LITERATE HASKELL SUPPORT
898−.PP
899−If you append \f[C]+lhs\f[] to an appropriate input or output format
900−(\f[C]markdown\f[], \f[C]rst\f[], or \f[C]latex\f[] for input or output;
901−\f[C]html\f[] for output only), pandoc will treat the document as
902−literate Haskell source.
903−This means that
904−.IP \[bu] 2
905−In markdown input, "bird track" sections will be parsed as Haskell code
906−rather than block quotations.
907−Text between \f[C]\\begin{code}\f[] and \f[C]\\end{code}\f[] will also
908−be treated as Haskell code.
909−.IP \[bu] 2
910−In markdown output, code blocks with class \f[C]haskell\f[] will be
911−rendered using bird tracks, and block quotations will be indented one
912−space, so they will not be treated as Haskell code.
913−In addition, headers will be rendered setext-style (with underlines)
914−rather than atx-style (with \[aq]#\[aq] characters).
915−(This is because ghc treats \[aq]#\[aq] characters in column 1 as
916−introducing line numbers.)
917−.IP \[bu] 2
918−In restructured text input, "bird track" sections will be parsed as
919−Haskell code.
920−.IP \[bu] 2
921−In restructured text output, code blocks with class \f[C]haskell\f[]
922−will be rendered using bird tracks.
923−.IP \[bu] 2
924−In LaTeX input, text in \f[C]code\f[] environments will be parsed as
925−Haskell code.
926−.IP \[bu] 2
927−In LaTeX output, code blocks with class \f[C]haskell\f[] will be
928−rendered inside \f[C]code\f[] environments.
929−.IP \[bu] 2
930−In HTML output, code blocks with class \f[C]haskell\f[] will be rendered
931−with class \f[C]literatehaskell\f[] and bird tracks.
932−.PP
933−Examples:
934−.IP
935−.nf
936−\f[C]
937−pandoc\ -f\ markdown+lhs\ -t\ html
938−\f[]
939−.fi
940−.PP
941−reads literate Haskell source formatted with markdown conventions and
942−writes ordinary HTML (without bird tracks).
943−.IP
944−.nf
945−\f[C]
946−pandoc\ -f\ markdown+lhs\ -t\ html+lhs
947−\f[]
948−.fi
949−.PP
950−writes HTML with the Haskell code in bird tracks, so it can be copied
951−and pasted as literate Haskell source.
952−.SH AUTHORS
953−.PP
954−© 2006-2011 John MacFarlane (jgm at berkeley dot edu).
955−Released under the GPL, version 2 or greater.
956−This software carries no warranty of any kind.
957−(See COPYRIGHT for full copyright and warranty notices.)
958− Other contributors include Recai Oktaş, Paulo Tanimoto, Peter Wang,
959−Andrea Rossato, Eric Kow, infinity0x, Luke Plant, shreevatsa.public,
960−Puneeth Chaganti, Paul Rivier, rodja.trappe, Bradley Kuhn, thsutton,
961−Nathan Gass, Jonathan Daugherty, Jérémy Bobbio, Justin Bogner, qerub,
962−Christopher Sawicki, Kelsey Hightower.
963−.SH PANDOC'S MARKDOWN
964−For a complete description of pandoc's extensions to standard markdown,
965−see \f[C]pandoc_markdown\f[] (5).
966−.SH SEE ALSO
967−.PP
968−\f[C]markdown2pdf\f[] (1), \f[C]pandoc_markdown\f[] (5).
969−.PP
970−The Pandoc source code and all documentation may be downloaded
971−from <http://johnmacfarlane.net/pandoc/>.
man/man5/pandoc_markdown.5deleted−1726
@@ -1,1726 +0,0 @@
1−.\"t
2−.TH PANDOC_MARKDOWN 5 "July 30, 2011" "Pandoc"
3−.SH NAME
4−pandoc_markdown - markdown syntax for pandoc(1)
5−.SH DESCRIPTION
6−.PP
7−Pandoc understands an extended and slightly revised version of John
8−Gruber\[aq]s markdown syntax.
9−This document explains the syntax, noting differences from standard
10−markdown.
11−Except where noted, these differences can be suppressed by specifying
12−the \f[C]--strict\f[] command-line option.
13−.SH PHILOSOPHY
14−.PP
15−Markdown is designed to be easy to write, and, even more importantly,
16−easy to read:
17−.RS
18−.PP
19−A Markdown-formatted document should be publishable as-is, as plain
20−text, without looking like it\[aq]s been marked up with tags or
21−formatting instructions.
22−-- John Gruber
23−.RE
24−.PP
25−This principle has guided pandoc\[aq]s decisions in finding syntax for
26−tables, footnotes, and other extensions.
27−.PP
28−There is, however, one respect in which pandoc\[aq]s aims are different
29−from the original aims of markdown.
30−Whereas markdown was originally designed with HTML generation in mind,
31−pandoc is designed for multiple output formats.
32−Thus, while pandoc allows the embedding of raw HTML, it discourages it,
33−and provides other, non-HTMLish ways of representing important document
34−elements like definition lists, tables, mathematics, and footnotes.
35−.SH PARAGRAPHS
36−.PP
37−A paragraph is one or more lines of text followed by one or more blank
38−line.
39−Newlines are treated as spaces, so you can reflow your paragraphs as you
40−like.
41−If you need a hard line break, put two or more spaces at the end of a
42−line, or type a backslash followed by a newline.
43−.SH HEADERS
44−.PP
45−There are two kinds of headers, Setext and atx.
46−.SS Setext-style headers
47−.PP
48−A setext-style header is a line of text "underlined" with a row of
49−\f[C]=\f[] signs (for a level one header) of \f[C]-\f[] signs (for a
50−level two header):
51−.IP
52−.nf
53−\f[C]
54−A\ level-one\ header
55−==================
56−
57−A\ level-two\ header
58−------------------
59−\f[]
60−.fi
61−.PP
62−The header text can contain inline formatting, such as emphasis (see
63−Inline formatting, below).
64−.SS Atx-style headers
65−.PP
66−An Atx-style header consists of one to six \f[C]#\f[] signs and a line
67−of text, optionally followed by any number of \f[C]#\f[] signs.
68−The number of \f[C]#\f[] signs at the beginning of the line is the
69−header level:
70−.IP
71−.nf
72−\f[C]
73−##\ A\ level-two\ header
74−
75−###\ A\ level-three\ header\ ###
76−\f[]
77−.fi
78−.PP
79−As with setext-style headers, the header text can contain formatting:
80−.IP
81−.nf
82−\f[C]
83−#\ A\ level-one\ header\ with\ a\ [link](/url)\ and\ *emphasis*
84−\f[]
85−.fi
86−.PP
87−Standard markdown syntax does not require a blank line before a header.
88−Pandoc does require this (except, of course, at the beginning of the
89−document).
90−The reason for the requirement is that it is all too easy for a
91−\f[C]#\f[] to end up at the beginning of a line by accident (perhaps
92−through line wrapping).
93−Consider, for example:
94−.IP
95−.nf
96−\f[C]
97−I\ like\ several\ of\ their\ flavors\ of\ ice\ cream:
98−#22,\ for\ example,\ and\ #5.
99−\f[]
100−.fi
101−.SS Header identifiers in HTML
102−.PP
103−\f[I]Pandoc extension\f[].
104−.PP
105−Each header element in pandoc\[aq]s HTML output is given a unique
106−identifier.
107−This identifier is based on the text of the header.
108−To derive the identifier from the header text,
109−.IP \[bu] 2
110−Remove all formatting, links, etc.
111−.IP \[bu] 2
112−Remove all punctuation, except underscores, hyphens, and periods.
113−.IP \[bu] 2
114−Replace all spaces and newlines with hyphens.
115−.IP \[bu] 2
116−Convert all alphabetic characters to lowercase.
117−.IP \[bu] 2
118−Remove everything up to the first letter (identifiers may not begin with
119−a number or punctuation mark).
120−.IP \[bu] 2
121−If nothing is left after this, use the identifier \f[C]section\f[].
122−.PP
123−Thus, for example,
124−.PP
125−.TS
126−tab(@);
127−l l.
128−T{
129−Header
130−T}@T{
131−Identifier
132−T}
133−_
134−T{
135−Header identifiers in HTML
136−T}@T{
137−\f[C]header-identifiers-in-html\f[]
138−T}
139−T{
140−\f[I]Dogs\f[]?--in \f[I]my\f[] house?
141−T}@T{
142−\f[C]dogs--in-my-house\f[]
143−T}
144−T{
145−HTML, S5, or RTF?
146−T}@T{
147−\f[C]html-s5-or-rtf\f[]
148−T}
149−T{
150−3.
151−Applications
152−T}@T{
153−\f[C]applications\f[]
154−T}
155−T{
156−33
157−T}@T{
158−\f[C]section\f[]
159−T}
160−.TE
161−.PP
162−These rules should, in most cases, allow one to determine the identifier
163−from the header text.
164−The exception is when several headers have the same text; in this case,
165−the first will get an identifier as described above; the second will get
166−the same identifier with \f[C]-1\f[] appended; the third with
167−\f[C]-2\f[]; and so on.
168−.PP
169−These identifiers are used to provide link targets in the table of
170−contents generated by the \f[C]--toc|--table-of-contents\f[] option.
171−They also make it easy to provide links from one section of a document
172−to another.
173−A link to this section, for example, might look like this:
174−.IP
175−.nf
176−\f[C]
177−See\ the\ section\ on
178−[header\ identifiers](#header-identifiers-in-html).
179−\f[]
180−.fi
181−.PP
182−Note, however, that this method of providing links to sections works
183−only in HTML.
184−.PP
185−If the \f[C]--section-divs\f[] option is specified, then each section
186−will be wrapped in a \f[C]div\f[] (or a \f[C]section\f[], if
187−\f[C]--html5\f[] was specified), and the identifier will be attached to
188−the enclosing \f[C]<div>\f[] (or \f[C]<section>\f[]) tag rather than the
189−header itself.
190−This allows entire sections to be manipulated using javascript or
191−treated differently in CSS.
192−.SH BLOCK QUOTATIONS
193−.PP
194−Markdown uses email conventions for quoting blocks of text.
195−A block quotation is one or more paragraphs or other block elements
196−(such as lists or headers), with each line preceded by a \f[C]>\f[]
197−character and a space.
198−(The \f[C]>\f[] need not start at the left margin, but it should not be
199−indented more than three spaces.)
200−.IP
201−.nf
202−\f[C]
203−>\ This\ is\ a\ block\ quote.\ This
204−>\ paragraph\ has\ two\ lines.
205−>
206−>\ 1.\ This\ is\ a\ list\ inside\ a\ block\ quote.
207−>\ 2.\ Second\ item.
208−\f[]
209−.fi
210−.PP
211−A "lazy" form, which requires the \f[C]>\f[] character only on the first
212−line of each block, is also allowed:
213−.IP
214−.nf
215−\f[C]
216−>\ This\ is\ a\ block\ quote.\ This
217−paragraph\ has\ two\ lines.
218−
219−>\ 1.\ This\ is\ a\ list\ inside\ a\ block\ quote.
220−2.\ Second\ item.
221−\f[]
222−.fi
223−.PP
224−Among the block elements that can be contained in a block quote are
225−other block quotes.
226−That is, block quotes can be nested:
227−.IP
228−.nf
229−\f[C]
230−>\ This\ is\ a\ block\ quote.
231−>
232−>\ >\ A\ block\ quote\ within\ a\ block\ quote.
233−\f[]
234−.fi
235−.PP
236−Standard markdown syntax does not require a blank line before a block
237−quote.
238−Pandoc does require this (except, of course, at the beginning of the
239−document).
240−The reason for the requirement is that it is all too easy for a
241−\f[C]>\f[] to end up at the beginning of a line by accident (perhaps
242−through line wrapping).
243−So, unless \f[C]--strict\f[] is used, the following does not produce a
244−nested block quote in pandoc:
245−.IP
246−.nf
247−\f[C]
248−>\ This\ is\ a\ block\ quote.
249−>>\ Nested.
250−\f[]
251−.fi
252−.SH VERBATIM (CODE) BLOCKS
253−.SS Indented code blocks
254−.PP
255−A block of text indented four spaces (or one tab) is treated as verbatim
256−text: that is, special characters do not trigger special formatting, and
257−all spaces and line breaks are preserved.
258−For example,
259−.IP
260−.nf
261−\f[C]
262−\ \ \ \ if\ (a\ >\ 3)\ {
263−\ \ \ \ \ \ moveShip(5\ *\ gravity,\ DOWN);
264−\ \ \ \ }
265−\f[]
266−.fi
267−.PP
268−The initial (four space or one tab) indentation is not considered part
269−of the verbatim text, and is removed in the output.
270−.PP
271−Note: blank lines in the verbatim text need not begin with four spaces.
272−.SS Delimited code blocks
273−.PP
274−\f[I]Pandoc extension\f[].
275−.PP
276−In addition to standard indented code blocks, Pandoc supports
277−\f[I]delimited\f[] code blocks.
278−These begin with a row of three or more tildes (\f[C]~\f[]) and end with
279−a row of tildes that must be at least as long as the starting row.
280−Everything between the tilde-lines is treated as code.
281−No indentation is necessary:
282−.IP
283−.nf
284−\f[C]
285−~~~~~~~
286−if\ (a\ >\ 3)\ {
287−\ \ moveShip(5\ *\ gravity,\ DOWN);
288−}
289−~~~~~~~
290−\f[]
291−.fi
292−.PP
293−Like regular code blocks, delimited code blocks must be separated from
294−surrounding text by blank lines.
295−.PP
296−If the code itself contains a row of tildes, just use a longer row of
297−tildes at the start and end:
298−.IP
299−.nf
300−\f[C]
301−~~~~~~~~~~~~~~~~
302−~~~~~~~~~~
303−code\ including\ tildes
304−~~~~~~~~~~
305−~~~~~~~~~~~~~~~~
306−\f[]
307−.fi
308−.PP
309−Optionally, you may specify the language of the code block using this
310−syntax:
311−.IP
312−.nf
313−\f[C]
314−~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\ {.haskell\ .numberLines}
315−qsort\ []\ \ \ \ \ =\ []
316−qsort\ (x:xs)\ =\ qsort\ (filter\ (<\ x)\ xs)\ ++\ [x]\ ++
317−\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ qsort\ (filter\ (>=\ x)\ xs)\
318−~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
319−\f[]
320−.fi
321−.PP
322−Some output formats can use this information to do syntax highlighting.
323−Currently, the only output format that uses this information is HTML.
324−.PP
325−If pandoc has been compiled with syntax highlighting support, then the
326−code block above will appear highlighted, with numbered lines.
327−(To see which languages are supported, do \f[C]pandoc\ --version\f[].)
328−.PP
329−If pandoc has not been compiled with syntax highlighting support, the
330−code block above will appear as follows:
331−.IP
332−.nf
333−\f[C]
334−<pre\ class="haskell">
335−\ \ <code>
336−\ \ ...
337−\ \ </code>
338−</pre>
339−\f[]
340−.fi
341−.SH LISTS
342−.SS Bullet lists
343−.PP
344−A bullet list is a list of bulleted list items.
345−A bulleted list item begins with a bullet (\f[C]*\f[], \f[C]+\f[], or
346−\f[C]-\f[]).
347−Here is a simple example:
348−.IP
349−.nf
350−\f[C]
351−*\ one
352−*\ two
353−*\ three
354−\f[]
355−.fi
356−.PP
357−This will produce a "compact" list.
358−If you want a "loose" list, in which each item is formatted as a
359−paragraph, put spaces between the items:
360−.IP
361−.nf
362−\f[C]
363−*\ one
364−
365−*\ two
366−
367−*\ three
368−\f[]
369−.fi
370−.PP
371−The bullets need not be flush with the left margin; they may be indented
372−one, two, or three spaces.
373−The bullet must be followed by whitespace.
374−.PP
375−List items look best if subsequent lines are flush with the first line
376−(after the bullet):
377−.IP
378−.nf
379−\f[C]
380−*\ here\ is\ my\ first
381−\ \ list\ item.
382−*\ and\ my\ second.
383−\f[]
384−.fi
385−.PP
386−But markdown also allows a "lazy" format:
387−.IP
388−.nf
389−\f[C]
390−*\ here\ is\ my\ first
391−list\ item.
392−*\ and\ my\ second.
393−\f[]
394−.fi
395−.SS The four-space rule
396−.PP
397−A list item may contain multiple paragraphs and other block-level
398−content.
399−However, subsequent paragraphs must be preceded by a blank line and
400−indented four spaces or a tab.
401−The list will look better if the first paragraph is aligned with the
402−rest:
403−.IP
404−.nf
405−\f[C]
406−\ \ *\ First\ paragraph.
407−
408−\ \ \ \ Continued.
409−
410−\ \ *\ Second\ paragraph.\ With\ a\ code\ block,\ which\ must\ be\ indented
411−\ \ \ \ eight\ spaces:
412−
413−\ \ \ \ \ \ \ \ {\ code\ }
414−\f[]
415−.fi
416−.PP
417−List items may include other lists.
418−In this case the preceding blank line is optional.
419−The nested list must be indented four spaces or one tab:
420−.IP
421−.nf
422−\f[C]
423−*\ fruits
424−\ \ \ \ +\ apples
425−\ \ \ \ \ \ \ \ -\ macintosh
426−\ \ \ \ \ \ \ \ -\ red\ delicious
427−\ \ \ \ +\ pears
428−\ \ \ \ +\ peaches
429−*\ vegetables
430−\ \ \ \ +\ brocolli
431−\ \ \ \ +\ chard
432−\f[]
433−.fi
434−.PP
435−As noted above, markdown allows you to write list items "lazily,"
436−instead of indenting continuation lines.
437−However, if there are multiple paragraphs or other blocks in a list
438−item, the first line of each must be indented.
439−.IP
440−.nf
441−\f[C]
442−+\ A\ lazy,\ lazy,\ list
443−item.
444−
445−+\ Another\ one;\ this\ looks
446−bad\ but\ is\ legal.
447−
448−\ \ \ \ Second\ paragraph\ of\ second
449−list\ item.
450−\f[]
451−.fi
452−.PP
453−\f[B]Note:\f[] Although the four-space rule for continuation paragraphs
454−comes from the official markdown syntax guide, the reference
455−implementation, \f[C]Markdown.pl\f[], does not follow it.
456−So pandoc will give different results than \f[C]Markdown.pl\f[] when
457−authors have indented continuation paragraphs fewer than four spaces.
458−.PP
459−The markdown syntax guide is not explicit whether the four-space rule
460−applies to \f[I]all\f[] block-level content in a list item; it only
461−mentions paragraphs and code blocks.
462−But it implies that the rule applies to all block-level content
463−(including nested lists), and pandoc interprets it that way.
464−.SS Ordered lists
465−.PP
466−Ordered lists work just like bulleted lists, except that the items begin
467−with enumerators rather than bullets.
468−.PP
469−In standard markdown, enumerators are decimal numbers followed by a
470−period and a space.
471−The numbers themselves are ignored, so there is no difference between
472−this list:
473−.IP
474−.nf
475−\f[C]
476−1.\ \ one
477−2.\ \ two
478−3.\ \ three
479−\f[]
480−.fi
481−.PP
482−and this one:
483−.IP
484−.nf
485−\f[C]
486−5.\ \ one
487−7.\ \ two
488−1.\ \ three
489−\f[]
490−.fi
491−.PP
492−\f[I]Pandoc extension\f[].
493−.PP
494−Unlike standard markdown, Pandoc allows ordered list items to be marked
495−with uppercase and lowercase letters and roman numerals, in addition to
496−arabic numerals.
497−List markers may be enclosed in parentheses or followed by a single
498−right-parentheses or period.
499−They must be separated from the text that follows by at least one space,
500−and, if the list marker is a capital letter with a period, by at least
501−two spaces.[1]
502−.PP
503−Pandoc also pays attention to the type of list marker used, and to the
504−starting number, and both of these are preserved where possible in the
505−output format.
506−Thus, the following yields a list with numbers followed by a single
507−parenthesis, starting with 9, and a sublist with lowercase roman
508−numerals:
509−.IP
510−.nf
511−\f[C]
512−\ 9)\ \ Ninth
513−10)\ \ Tenth
514−11)\ \ Eleventh
515−\ \ \ \ \ \ \ i.\ subone
516−\ \ \ \ \ \ ii.\ subtwo
517−\ \ \ \ \ iii.\ subthree
518−\f[]
519−.fi
520−.PP
521−Note that Pandoc pays attention only to the \f[I]starting\f[] marker in
522−a list.
523−So, the following yields a list numbered sequentially starting from 2:
524−.IP
525−.nf
526−\f[C]
527−(2)\ Two
528−(5)\ Three
529−1.\ \ Four
530−*\ \ \ Five
531−\f[]
532−.fi
533−.PP
534−If default list markers are desired, use \f[C]#.\f[]:
535−.IP
536−.nf
537−\f[C]
538−#.\ \ one
539−#.\ \ two
540−#.\ \ three
541−\f[]
542−.fi
543−.SS Definition lists
544−.PP
545−\f[I]Pandoc extension\f[].
546−.PP
547−Pandoc supports definition lists, using a syntax inspired by PHP
548−Markdown Extra and reStructuredText:[2]
549−.IP
550−.nf
551−\f[C]
552−Term\ 1
553−
554−:\ \ \ Definition\ 1
555−
556−Term\ 2\ with\ *inline\ markup*
557−
558−:\ \ \ Definition\ 2
559−
560−\ \ \ \ \ \ \ \ {\ some\ code,\ part\ of\ Definition\ 2\ }
561−
562−\ \ \ \ Third\ paragraph\ of\ definition\ 2.
563−\f[]
564−.fi
565−.PP
566−Each term must fit on one line, which may optionally be followed by a
567−blank line, and must be followed by one or more definitions.
568−A definition begins with a colon or tilde, which may be indented one or
569−two spaces.
570−A term may have multiple definitions, and each definition may consist of
571−one or more block elements (paragraph, code block, list, etc.)
572−, each indented four spaces or one tab stop.
573−.PP
574−If you leave space after the definition (as in the example above), the
575−blocks of the definitions will be considered paragraphs.
576−In some output formats, this will mean greater spacing between
577−term/definition pairs.
578−For a compact definition list, do not leave space between the definition
579−and the next term:
580−.IP
581−.nf
582−\f[C]
583−Term\ 1
584−\ \ ~\ Definition\ 1
585−Term\ 2
586−\ \ ~\ Definition\ 2a
587−\ \ ~\ Definition\ 2b
588−\f[]
589−.fi
590−.SS Numbered example lists
591−.PP
592−\f[I]Pandoc extension\f[].
593−.PP
594−The special list marker \f[C]\@\f[] can be used for sequentially
595−numbered examples.
596−The first list item with a \f[C]\@\f[] marker will be numbered
597−\[aq]1\[aq], the next \[aq]2\[aq], and so on, throughout the document.
598−The numbered examples need not occur in a single list; each new list
599−using \f[C]\@\f[] will take up where the last stopped.
600−So, for example:
601−.IP
602−.nf
603−\f[C]
604−(\@)\ \ My\ first\ example\ will\ be\ numbered\ (1).
605−(\@)\ \ My\ second\ example\ will\ be\ numbered\ (2).
606−
607−Explanation\ of\ examples.
608−
609−(\@)\ \ My\ third\ example\ will\ be\ numbered\ (3).
610−\f[]
611−.fi
612−.PP
613−Numbered examples can be labeled and referred to elsewhere in the
614−document:
615−.IP
616−.nf
617−\f[C]
618−(\@good)\ \ This\ is\ a\ good\ example.
619−
620−As\ (\@good)\ illustrates,\ ...
621−\f[]
622−.fi
623−.PP
624−The label can be any string of alphanumeric characters, underscores, or
625−hyphens.
626−.SS Compact and loose lists
627−.PP
628−Pandoc behaves differently from \f[C]Markdown.pl\f[] on some "edge
629−cases" involving lists.
630−Consider this source:
631−.IP
632−.nf
633−\f[C]
634−+\ \ \ First
635−+\ \ \ Second:
636−\ -\ \ \ Fee
637−\ -\ \ \ Fie
638−\ -\ \ \ Foe
639−
640−+\ \ \ Third
641−\f[]
642−.fi
643−.PP
644−Pandoc transforms this into a "compact list" (with no \f[C]<p>\f[] tags
645−around "First", "Second", or "Third"), while markdown puts \f[C]<p>\f[]
646−tags around "Second" and "Third" (but not "First"), because of the blank
647−space around "Third".
648−Pandoc follows a simple rule: if the text is followed by a blank line,
649−it is treated as a paragraph.
650−Since "Second" is followed by a list, and not a blank line, it isn\[aq]t
651−treated as a paragraph.
652−The fact that the list is followed by a blank line is irrelevant.
653−(Note: Pandoc works this way even when the \f[C]--strict\f[] option is
654−specified.
655−This behavior is consistent with the official markdown syntax
656−description, even though it is different from that of
657−\f[C]Markdown.pl\f[].)
658−.SS Ending a list
659−.PP
660−What if you want to put an indented code block after a list?
661−.IP
662−.nf
663−\f[C]
664−-\ \ \ item\ one
665−-\ \ \ item\ two
666−
667−\ \ \ \ {\ my\ code\ block\ }
668−\f[]
669−.fi
670−.PP
671−Trouble! Here pandoc (like other markdown implementations) will treat
672−\f[C]{\ my\ code\ block\ }\f[] as the second paragraph of item two, and
673−not as a code block.
674−.PP
675−To "cut off" the list after item two, you can insert some non-indented
676−content, like an HTML comment, which won\[aq]t produce visible output in
677−any format:
678−.IP
679−.nf
680−\f[C]
681−-\ \ \ item\ one
682−-\ \ \ item\ two
683−
684−<!--\ end\ of\ list\ -->
685−
686−\ \ \ \ {\ my\ code\ block\ }
687−\f[]
688−.fi
689−.PP
690−You can use the same trick if you want two consecutive lists instead of
691−one big list:
692−.IP
693−.nf
694−\f[C]
695−1.\ \ one
696−2.\ \ two
697−3.\ \ three
698−
699−<!--\ -->
700−
701−a.\ \ uno
702−b.\ \ dos
703−c.\ \ tres
704−\f[]
705−.fi
706−.SH HORIZONTAL RULES
707−.PP
708−A line containing a row of three or more \f[C]*\f[], \f[C]-\f[], or
709−\f[C]_\f[] characters (optionally separated by spaces) produces a
710−horizontal rule:
711−.IP
712−.nf
713−\f[C]
714−*\ \ *\ \ *\ \ *
715−
716−---------------
717−\f[]
718−.fi
719−.SH TABLES
720−.PP
721−\f[I]Pandoc extension\f[].
722−.PP
723−Three kinds of tables may be used.
724−All three kinds presuppose the use of a fixed-width font, such as
725−Courier.
726−.PP
727−\f[B]Simple tables\f[] look like this:
728−.IP
729−.nf
730−\f[C]
731−\ \ Right\ \ \ \ \ Left\ \ \ \ \ Center\ \ \ \ \ Default
732−-------\ \ \ \ \ ------\ ----------\ \ \ -------
733−\ \ \ \ \ 12\ \ \ \ \ 12\ \ \ \ \ \ \ \ 12\ \ \ \ \ \ \ \ \ \ \ \ 12
734−\ \ \ \ 123\ \ \ \ \ 123\ \ \ \ \ \ \ 123\ \ \ \ \ \ \ \ \ \ 123
735−\ \ \ \ \ \ 1\ \ \ \ \ 1\ \ \ \ \ \ \ \ \ \ 1\ \ \ \ \ \ \ \ \ \ \ \ \ 1
736−
737−Table:\ \ Demonstration\ of\ simple\ table\ syntax.
738−\f[]
739−.fi
740−.PP
741−The headers and table rows must each fit on one line.
742−Column alignments are determined by the position of the header text
743−relative to the dashed line below it:[3]
744−.IP \[bu] 2
745−If the dashed line is flush with the header text on the right side but
746−extends beyond it on the left, the column is right-aligned.
747−.IP \[bu] 2
748−If the dashed line is flush with the header text on the left side but
749−extends beyond it on the right, the column is left-aligned.
750−.IP \[bu] 2
751−If the dashed line extends beyond the header text on both sides, the
752−column is centered.
753−.IP \[bu] 2
754−If the dashed line is flush with the header text on both sides, the
755−default alignment is used (in most cases, this will be left).
756−.PP
757−The table must end with a blank line, or a line of dashes followed by a
758−blank line.
759−A caption may optionally be provided (as illustrated in the example
760−above).
761−A caption is a paragraph beginning with the string \f[C]Table:\f[] (or
762−just \f[C]:\f[]), which will be stripped off.
763−It may appear either before or after the table.
764−.PP
765−The column headers may be omitted, provided a dashed line is used to end
766−the table.
767−For example:
768−.IP
769−.nf
770−\f[C]
771−-------\ \ \ \ \ ------\ ----------\ \ \ -------
772−\ \ \ \ \ 12\ \ \ \ \ 12\ \ \ \ \ \ \ \ 12\ \ \ \ \ \ \ \ \ \ \ \ \ 12
773−\ \ \ \ 123\ \ \ \ \ 123\ \ \ \ \ \ \ 123\ \ \ \ \ \ \ \ \ \ \ 123
774−\ \ \ \ \ \ 1\ \ \ \ \ 1\ \ \ \ \ \ \ \ \ \ 1\ \ \ \ \ \ \ \ \ \ \ \ \ \ 1
775−-------\ \ \ \ \ ------\ ----------\ \ \ -------
776−\f[]
777−.fi
778−.PP
779−When headers are omitted, column alignments are determined on the basis
780−of the first line of the table body.
781−So, in the tables above, the columns would be right, left, center, and
782−right aligned, respectively.
783−.PP
784−\f[B]Multiline tables\f[] allow headers and table rows to span multiple
785−lines of text (but cells that span multiple columns or rows of the table
786−are not supported).
787−Here is an example:
788−.IP
789−.nf
790−\f[C]
791−-------------------------------------------------------------
792−\ Centered\ \ \ Default\ \ \ \ \ \ \ \ \ \ \ Right\ Left
793−\ \ Header\ \ \ \ Aligned\ \ \ \ \ \ \ \ \ Aligned\ Aligned
794−-----------\ -------\ ---------------\ -------------------------
795−\ \ \ First\ \ \ \ row\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 12.0\ Example\ of\ a\ row\ that
796−\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ spans\ multiple\ lines.
797−
798−\ \ Second\ \ \ \ row\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 5.0\ Here\[aq]s\ another\ one.\ Note
799−\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ the\ blank\ line\ between
800−\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ rows.
801−-------------------------------------------------------------
802−
803−Table:\ Here\[aq]s\ the\ caption.\ It,\ too,\ may\ span
804−multiple\ lines.
805−\f[]
806−.fi
807−.PP
808−These work like simple tables, but with the following differences:
809−.IP \[bu] 2
810−They must begin with a row of dashes, before the header text (unless the
811−headers are omitted).
812−.IP \[bu] 2
813−They must end with a row of dashes, then a blank line.
814−.IP \[bu] 2
815−The rows must be separated by blank lines.
816−.PP
817−In multiline tables, the table parser pays attention to the widths of
818−the columns, and the writers try to reproduce these relative widths in
819−the output.
820−So, if you find that one of the columns is too narrow in the output, try
821−widening it in the markdown source.
822−.PP
823−Headers may be omitted in multiline tables as well as simple tables:
824−.IP
825−.nf
826−\f[C]
827−-----------\ -------\ ---------------\ -------------------------
828−\ \ \ First\ \ \ \ row\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 12.0\ Example\ of\ a\ row\ that
829−\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ spans\ multiple\ lines.
830−
831−\ \ Second\ \ \ \ row\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 5.0\ Here\[aq]s\ another\ one.\ Note
832−\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ the\ blank\ line\ between
833−\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ rows.
834−-------------------------------------------------------------
835−
836−:\ Here\[aq]s\ a\ multiline\ table\ without\ headers.
837−\f[]
838−.fi
839−.PP
840−It is possible for a multiline table to have just one row, but the row
841−should be followed by a blank line (and then the row of dashes that ends
842−the table), or the table may be interpreted as a simple table.
843−.PP
844−\f[B]Grid tables\f[] look like this:
845−.IP
846−.nf
847−\f[C]
848−:\ Sample\ grid\ table.
849−
850−+---------------+---------------+--------------------+
851−|\ Fruit\ \ \ \ \ \ \ \ \ |\ Price\ \ \ \ \ \ \ \ \ |\ Advantages\ \ \ \ \ \ \ \ \ |
852−+===============+===============+====================+
853−|\ Bananas\ \ \ \ \ \ \ |\ $1.34\ \ \ \ \ \ \ \ \ |\ -\ built-in\ wrapper\ |
854−|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ |\ -\ bright\ color\ \ \ \ \ |
855−+---------------+---------------+--------------------+
856−|\ Oranges\ \ \ \ \ \ \ |\ $2.10\ \ \ \ \ \ \ \ \ |\ -\ cures\ scurvy\ \ \ \ \ |
857−|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ |\ -\ tasty\ \ \ \ \ \ \ \ \ \ \ \ |
858−+---------------+---------------+--------------------+
859−\f[]
860−.fi
861−.PP
862−The row of \f[C]=\f[]s separates the header from the table body, and can
863−be omitted for a headerless table.
864−The cells of grid tables may contain arbitrary block elements (multiple
865−paragraphs, code blocks, lists, etc.)
866−\&.
867−Alignments are not supported, nor are cells that span multiple columns
868−or rows.
869−Grid tables can be created easily using Emacs table mode.
870−.SH TITLE BLOCK
871−.PP
872−\f[I]Pandoc extension\f[].
873−.PP
874−If the file begins with a title block
875−.IP
876−.nf
877−\f[C]
878−%\ title
879−%\ author(s)\ (separated\ by\ semicolons)
880−%\ date
881−\f[]
882−.fi
883−.PP
884−it will be parsed as bibliographic information, not regular text.
885−(It will be used, for example, in the title of standalone LaTeX or HTML
886−output.)
887− The block may contain just a title, a title and an author, or all three
888−elements.
889−If you want to include an author but no title, or a title and a date but
890−no author, you need a blank line:
891−.IP
892−.nf
893−\f[C]
894−%
895−%\ Author
896−
897−%\ My\ title
898−%
899−%\ June\ 15,\ 2006
900−\f[]
901−.fi
902−.PP
903−The title may occupy multiple lines, but continuation lines must begin
904−with leading space, thus:
905−.IP
906−.nf
907−\f[C]
908−%\ My\ title
909−\ \ on\ multiple\ lines
910−\f[]
911−.fi
912−.PP
913−If a document has multiple authors, the authors may be put on separate
914−lines with leading space, or separated by semicolons, or both.
915−So, all of the following are equivalent:
916−.IP
917−.nf
918−\f[C]
919−%\ Author\ One
920−\ \ Author\ Two
921−
922−%\ Author\ One;\ Author\ Two
923−
924−%\ Author\ One;
925−\ \ Author\ Two
926−\f[]
927−.fi
928−.PP
929−The date must fit on one line.
930−.PP
931−All three metadata fields may contain standard inline formatting
932−(italics, links, footnotes, etc.)
933−\&.
934−.PP
935−Title blocks will always be parsed, but they will affect the output only
936−when the \f[C]--standalone\f[] (\f[C]-s\f[]) option is chosen.
937−In HTML output, titles will appear twice: once in the document head --
938−this is the title that will appear at the top of the window in a browser
939−-- and once at the beginning of the document body.
940−The title in the document head can have an optional prefix attached
941−(\f[C]--title-prefix\f[] or \f[C]-T\f[] option).
942−The title in the body appears as an H1 element with class "title", so it
943−can be suppressed or reformatted with CSS.
944−If a title prefix is specified with \f[C]-T\f[] and no title block
945−appears in the document, the title prefix will be used by itself as the
946−HTML title.
947−.PP
948−The man page writer extracts a title, man page section number, and other
949−header and footer information from the title line.
950−The title is assumed to be the first word on the title line, which may
951−optionally end with a (single-digit) section number in parentheses.
952−(There should be no space between the title and the parentheses.)
953− Anything after this is assumed to be additional footer and header text.
954−A single pipe character (\f[C]|\f[]) should be used to separate the
955−footer text from the header text.
956−Thus,
957−.IP
958−.nf
959−\f[C]
960−%\ PANDOC(1)
961−\f[]
962−.fi
963−.PP
964−will yield a man page with the title \f[C]PANDOC\f[] and section 1.
965−.IP
966−.nf
967−\f[C]
968−%\ PANDOC(1)\ Pandoc\ User\ Manuals
969−\f[]
970−.fi
971−.PP
972−will also have "Pandoc User Manuals" in the footer.
973−.IP
974−.nf
975−\f[C]
976−%\ PANDOC(1)\ Pandoc\ User\ Manuals\ |\ Version\ 4.0
977−\f[]
978−.fi
979−.PP
980−will also have "Version 4.0" in the header.
981−.SH BACKSLASH ESCAPES
982−.PP
983−Except inside a code block or inline code, any punctuation or space
984−character preceded by a backslash will be treated literally, even if it
985−would normally indicate formatting.
986−Thus, for example, if one writes
987−.IP
988−.nf
989−\f[C]
990−*\\*hello\\**
991−\f[]
992−.fi
993−.PP
994−one will get
995−.IP
996−.nf
997−\f[C]
998−<em>*hello*</em>
999−\f[]
1000−.fi
1001−.PP
1002−instead of
1003−.IP
1004−.nf
1005−\f[C]
1006−<strong>hello</strong>
1007−\f[]
1008−.fi
1009−.PP
1010−This rule is easier to remember than standard markdown\[aq]s rule, which
1011−allows only the following characters to be backslash-escaped:
1012−.IP
1013−.nf
1014−\f[C]
1015−\\`*_{}[]()>#+-.!
1016−\f[]
1017−.fi
1018−.PP
1019−(However, if the \f[C]--strict\f[] option is supplied, the standard
1020−markdown rule will be used.)
1021−.PP
1022−A backslash-escaped space is parsed as a nonbreaking space.
1023−It will appear in TeX output as \f[C]~\f[] and in HTML and XML as
1024−\f[C]\\&#160;\f[] or \f[C]\\&nbsp;\f[].
1025−.PP
1026−A backslash-escaped newline (i.e.
1027−a backslash occurring at the end of a line) is parsed as a hard line
1028−break.
1029−It will appear in TeX output as \f[C]\\\\\f[] and in HTML as
1030−\f[C]<br\ />\f[].
1031−This is a nice alternative to markdown\[aq]s "invisible" way of
1032−indicating hard line breaks using two trailing spaces on a line.
1033−.PP
1034−Backslash escapes do not work in verbatim contexts.
1035−.SH SMART PUNCTUATION
1036−.PP
1037−If the \f[C]--smart\f[] option is specified, pandoc will produce
1038−typographically correct output, converting straight quotes to curly
1039−quotes, \f[C]---\f[] and \f[C]--\f[] to Em-dashes, and \f[C]...\f[] to
1040−ellipses.
1041−Nonbreaking spaces are inserted after certain abbreviations, such as
1042−"Mr."
1043−.PP
1044−Note: if your LaTeX template uses the \f[C]csquotes\f[] package, pandoc
1045−will detect automatically this and use \f[C]\\enquote{...}\f[] for
1046−quoted text.
1047−.SH INLINE FORMATTING
1048−.SS Emphasis
1049−.PP
1050−To \f[I]emphasize\f[] some text, surround it with \f[C]*\f[]s or
1051−\f[C]_\f[], like this:
1052−.IP
1053−.nf
1054−\f[C]
1055−This\ text\ is\ _emphasized\ with\ underscores_,\ and\ this
1056−is\ *emphasized\ with\ asterisks*.
1057−\f[]
1058−.fi
1059−.PP
1060−Double \f[C]*\f[] or \f[C]_\f[] produces \f[B]strong emphasis\f[]:
1061−.IP
1062−.nf
1063−\f[C]
1064−This\ is\ **strong\ emphasis**\ and\ __with\ underscores__.
1065−\f[]
1066−.fi
1067−.PP
1068−A \f[C]*\f[] or \f[C]_\f[] character surrounded by spaces, or
1069−backslash-escaped, will not trigger emphasis:
1070−.IP
1071−.nf
1072−\f[C]
1073−This\ is\ *\ not\ emphasized\ *,\ and\ \\*neither\ is\ this\\*.
1074−\f[]
1075−.fi
1076−.PP
1077−Because \f[C]_\f[] is sometimes used inside words and identifiers,
1078−pandoc does not interpret a \f[C]_\f[] surrounded by alphanumeric
1079−characters as an emphasis marker.
1080−If you want to emphasize just part of a word, use \f[C]*\f[]:
1081−.IP
1082−.nf
1083−\f[C]
1084−feas*ible*,\ not\ feas*able*.
1085−\f[]
1086−.fi
1087−.SS Strikeout
1088−.PP
1089−\f[I]Pandoc extension\f[].
1090−.PP
1091−To strikeout a section of text with a horizontal line, begin and end it
1092−with \f[C]~~\f[].
1093−Thus, for example,
1094−.IP
1095−.nf
1096−\f[C]
1097−This\ ~~is\ deleted\ text.~~
1098−\f[]
1099−.fi
1100−.SS Superscripts and subscripts
1101−.PP
1102−\f[I]Pandoc extension\f[].
1103−.PP
1104−Superscripts may be written by surrounding the superscripted text by
1105−\f[C]^\f[] characters; subscripts may be written by surrounding the
1106−subscripted text by \f[C]~\f[] characters.
1107−Thus, for example,
1108−.IP
1109−.nf
1110−\f[C]
1111−H~2~O\ is\ a\ liquid.\ \ 2^10^\ is\ 1024.
1112−\f[]
1113−.fi
1114−.PP
1115−If the superscripted or subscripted text contains spaces, these spaces
1116−must be escaped with backslashes.
1117−(This is to prevent accidental superscripting and subscripting through
1118−the ordinary use of \f[C]~\f[] and \f[C]^\f[].)
1119− Thus, if you want the letter P with \[aq]a cat\[aq] in subscripts, use
1120−\f[C]P~a\\\ cat~\f[], not \f[C]P~a\ cat~\f[].
1121−.SS Verbatim
1122−.PP
1123−To make a short span of text verbatim, put it inside backticks:
1124−.IP
1125−.nf
1126−\f[C]
1127−What\ is\ the\ difference\ between\ `>>=`\ and\ `>>`?
1128−\f[]
1129−.fi
1130−.PP
1131−If the verbatim text includes a backtick, use double backticks:
1132−.IP
1133−.nf
1134−\f[C]
1135−Here\ is\ a\ literal\ backtick\ ``\ `\ ``.
1136−\f[]
1137−.fi
1138−.PP
1139−(The spaces after the opening backticks and before the closing backticks
1140−will be ignored.)
1141−.PP
1142−The general rule is that a verbatim span starts with a string of
1143−consecutive backticks (optionally followed by a space) and ends with a
1144−string of the same number of backticks (optionally preceded by a space).
1145−.PP
1146−Note that backslash-escapes (and other markdown constructs) do not work
1147−in verbatim contexts:
1148−.IP
1149−.nf
1150−\f[C]
1151−This\ is\ a\ backslash\ followed\ by\ an\ asterisk:\ `\\*`.
1152−\f[]
1153−.fi
1154−.SH MATH
1155−.PP
1156−\f[I]Pandoc extension\f[].
1157−.PP
1158−Anything between two \f[C]$\f[] characters will be treated as TeX math.
1159−The opening \f[C]$\f[] must have a character immediately to its right,
1160−while the closing \f[C]$\f[] must have a character immediately to its
1161−left.
1162−Thus, \f[C]$20,000\ and\ $30,000\f[] won\[aq]t parse as math.
1163−If for some reason you need to enclose text in literal \f[C]$\f[]
1164−characters, backslash-escape them and they won\[aq]t be treated as math
1165−delimiters.
1166−.PP
1167−TeX math will be printed in all output formats.
1168−How it is rendered depends on the output format:
1169−.TP
1170−.B Markdown, reStructuredText, LaTeX, Org-Mode, ConTeXt
1171−It will appear verbatim between \f[C]$\f[] characters.
1172−.RS
1173−.RE
1174−.TP
1175−.B reStructuredText
1176−It will be rendered using an interpreted text role \f[C]:math:\f[], as
1177−described here.
1178−.RS
1179−.RE
1180−.TP
1181−.B Texinfo
1182−It will be rendered inside a \f[C]\@math\f[] command.
1183−.RS
1184−.RE
1185−.TP
1186−.B groff man
1187−It will be rendered verbatim without \f[C]$\f[]\[aq]s.
1188−.RS
1189−.RE
1190−.TP
1191−.B MediaWiki
1192−It will be rendered inside \f[C]<math>\f[] tags.
1193−.RS
1194−.RE
1195−.TP
1196−.B Textile
1197−It will be rendered inside \f[C]<span\ class="math">\f[] tags.
1198−.RS
1199−.RE
1200−.TP
1201−.B RTF, Docbook, OpenDocument, ODT
1202−It will be rendered, if possible, using unicode characters, and will
1203−otherwise appear verbatim.
1204−.RS
1205−.RE
1206−.TP
1207−.B HTML, Slidy, DZSlides, S5, EPUB
1208−The way math is rendered in HTML will depend on the command-line options
1209−selected:
1210−.RS
1211−.IP "1." 3
1212−The default is to render TeX math as far as possible using unicode
1213−characters, as with RTF, Docbook, and OpenDocument output.
1214−Formulas are put inside a \f[C]span\f[] with \f[C]class="math"\f[], so
1215−that they may be styled differently from the surrounding text if needed.
1216−.IP "2." 3
1217−If the \f[C]--latexmathml\f[] option is used, TeX math will be displayed
1218−between $ or $$ characters and put in \f[C]<span>\f[] tags with class
1219−\f[C]LaTeX\f[].
1220−The LaTeXMathML script will be used to render it as formulas.
1221−(This trick does not work in all browsers, but it works in Firefox.
1222−In browsers that do not support LaTeXMathML, TeX math will appear
1223−verbatim between $ characters.)
1224−.IP "3." 3
1225−If the \f[C]--jsmath\f[] option is used, TeX math will be put inside
1226−\f[C]<span>\f[] tags (for inline math) or \f[C]<div>\f[] tags (for
1227−display math) with class \f[C]math\f[].
1228−The jsMath script will be used to render it.
1229−.IP "4." 3
1230−If the \f[C]--mimetex\f[] option is used, the mimeTeX CGI script will be
1231−called to generate images for each TeX formula.
1232−This should work in all browsers.
1233−The \f[C]--mimetex\f[] option takes an optional URL as argument.
1234−If no URL is specified, it will be assumed that the mimeTeX CGI script
1235−is at \f[C]/cgi-bin/mimetex.cgi\f[].
1236−.IP "5." 3
1237−If the \f[C]--gladtex\f[] option is used, TeX formulas will be enclosed
1238−in \f[C]<eq>\f[] tags in the HTML output.
1239−The resulting \f[C]htex\f[] file may then be processed by gladTeX, which
1240−will produce image files for each formula and an \f[C]html\f[] file with
1241−links to these images.
1242−So, the procedure is:
1243−.RS 4
1244−.IP
1245−.nf
1246−\f[C]
1247−pandoc\ -s\ --gladtex\ myfile.txt\ -o\ myfile.htex
1248−gladtex\ -d\ myfile-images\ myfile.htex
1249−#\ produces\ myfile.html\ and\ images\ in\ myfile-images
1250−\f[]
1251−.fi
1252−.RE
1253−.IP "6." 3
1254−If the \f[C]--webtex\f[] option is used, TeX formulas will be converted
1255−to \f[C]<img>\f[] tags that link to an external script that converts
1256−formulas to images.
1257−The formula will be URL-encoded and concatenated with the URL provided.
1258−If no URL is specified, the Google Chart API will be used
1259−(\f[C]http://chart.apis.google.com/chart?cht=tx&chl=\f[]).
1260−.RE
1261−.SH RAW HTML
1262−.PP
1263−Markdown allows you to insert raw HTML anywhere in a document (except
1264−verbatim contexts, where \f[C]<\f[], \f[C]>\f[], and \f[C]&\f[] are
1265−interpreted literally).
1266−.PP
1267−The raw HTML is passed through unchanged in HTML, S5, Slidy, DZSlides,
1268−EPUB, Markdown, and Textile output, and suppressed in other formats.
1269−.PP
1270−\f[I]Pandoc extension\f[].
1271−.PP
1272−Standard markdown allows you to include HTML "blocks": blocks of HTML
1273−between balanced tags that are separated from the surrounding text with
1274−blank lines, and start and end at the left margin.
1275−Within these blocks, everything is interpreted as HTML, not markdown; so
1276−(for example), \f[C]*\f[] does not signify emphasis.
1277−.PP
1278−Pandoc behaves this way when \f[C]--strict\f[] is specified; but by
1279−default, pandoc interprets material between HTML block tags as markdown.
1280−Thus, for example, Pandoc will turn
1281−.IP
1282−.nf
1283−\f[C]
1284−<table>
1285−\ <tr>
1286−\ \ <td>*one*</td>
1287−\ \ <td>[a\ link](http://google.com)</td>
1288−\ </tr>
1289−</table>
1290−\f[]
1291−.fi
1292−.PP
1293−into
1294−.IP
1295−.nf
1296−\f[C]
1297−<table>
1298−\ <tr>
1299−\ \ <td><em>one</em></td>
1300−\ \ <td><a\ href="http://google.com">a\ link</a></td>
1301−\ </tr>
1302−</table>
1303−\f[]
1304−.fi
1305−.PP
1306−whereas \f[C]Markdown.pl\f[] will preserve it as is.
1307−.PP
1308−There is one exception to this rule: text between \f[C]<script>\f[] and
1309−\f[C]<style>\f[] tags is not interpreted as markdown.
1310−.PP
1311−This departure from standard markdown should make it easier to mix
1312−markdown with HTML block elements.
1313−For example, one can surround a block of markdown text with
1314−\f[C]<div>\f[] tags without preventing it from being interpreted as
1315−markdown.
1316−.SH RAW TEX
1317−.PP
1318−\f[I]Pandoc extension\f[].
1319−.PP
1320−In addition to raw HTML, pandoc allows raw LaTeX, TeX, and ConTeXt to be
1321−included in a document.
1322−Inline TeX commands will be preserved and passed unchanged to the LaTeX
1323−and ConTeXt writers.
1324−Thus, for example, you can use LaTeX to include BibTeX citations:
1325−.IP
1326−.nf
1327−\f[C]
1328−This\ result\ was\ proved\ in\ \\cite{jones.1967}.
1329−\f[]
1330−.fi
1331−.PP
1332−Note that in LaTeX environments, like
1333−.IP
1334−.nf
1335−\f[C]
1336−\\begin{tabular}{|l|l|}\\hline
1337−Age\ &\ Frequency\ \\\\\ \\hline
1338−18--25\ \ &\ 15\ \\\\
1339−26--35\ \ &\ 33\ \\\\\
1340−36--45\ \ &\ 22\ \\\\\ \\hline
1341−\\end{tabular}
1342−\f[]
1343−.fi
1344−.PP
1345−the material between the begin and end tags will be interpreted as raw
1346−LaTeX, not as markdown.
1347−.PP
1348−Inline LaTeX is ignored in output formats other than Markdown, LaTeX,
1349−and ConTeXt.
1350−.SS Macros
1351−.PP
1352−For output formats other than LaTeX, pandoc will parse LaTeX
1353−\f[C]\\newcommand\f[] and \f[C]\\renewcommand\f[] definitions and apply
1354−the resulting macros to all LaTeX math.
1355−So, for example, the following will work in all output formats, not just
1356−LaTeX:
1357−.IP
1358−.nf
1359−\f[C]
1360−\\newcommand{\\tuple}[1]{\\langle\ #1\ \\rangle}
1361−
1362−$\\tuple{a,\ b,\ c}$
1363−\f[]
1364−.fi
1365−.PP
1366−In LaTeX output, the \f[C]\\newcommand\f[] definition will simply be
1367−passed unchanged to the output.
1368−.SH LINKS
1369−.PP
1370−Markdown allows links to be specified in several ways.
1371−.SS Automatic links
1372−.PP
1373−If you enclose a URL or email address in pointy brackets, it will become
1374−a link:
1375−.IP
1376−.nf
1377−\f[C]
1378−<http://google.com>
1379−<sam\@green.eggs.ham>
1380−\f[]
1381−.fi
1382−.SS Inline links
1383−.PP
1384−An inline link consists of the link text in square brackets, followed by
1385−the URL in parentheses.
1386−(Optionally, the URL can be followed by a link title, in quotes.)
1387−.IP
1388−.nf
1389−\f[C]
1390−This\ is\ an\ [inline\ link](/url),\ and\ here\[aq]s\ [one\ with
1391−a\ title](http://fsf.org\ "click\ here\ for\ a\ good\ time!").
1392−\f[]
1393−.fi
1394−.PP
1395−There can be no space between the bracketed part and the parenthesized
1396−part.
1397−The link text can contain formatting (such as emphasis), but the title
1398−cannot.
1399−.SS Reference links
1400−.PP
1401−An \f[I]explicit\f[] reference link has two parts, the link itself and
1402−the link definition, which may occur elsewhere in the document (either
1403−before or after the link).
1404−.PP
1405−The link consists of link text in square brackets, followed by a label
1406−in square brackets.
1407−(There can be space between the two.)
1408− The link definition must begin at the left margin or indented no more
1409−than three spaces.
1410−It consists of the bracketed label, followed by a colon and a space,
1411−followed by the URL, and optionally (after a space) a link title either
1412−in quotes or in parentheses.
1413−.PP
1414−Here are some examples:
1415−.IP
1416−.nf
1417−\f[C]
1418−[my\ label\ 1]:\ /foo/bar.html\ \ "My\ title,\ optional"
1419−[my\ label\ 2]:\ /foo
1420−[my\ label\ 3]:\ http://fsf.org\ (The\ free\ software\ foundation)
1421−[my\ label\ 4]:\ /bar#special\ \ \[aq]A\ title\ in\ single\ quotes\[aq]
1422−\f[]
1423−.fi
1424−.PP
1425−The URL may optionally be surrounded by angle brackets:
1426−.IP
1427−.nf
1428−\f[C]
1429−[my\ label\ 5]:\ <http://foo.bar.baz>
1430−\f[]
1431−.fi
1432−.PP
1433−The title may go on the next line:
1434−.IP
1435−.nf
1436−\f[C]
1437−[my\ label\ 3]:\ http://fsf.org
1438−\ \ "The\ free\ software\ foundation"
1439−\f[]
1440−.fi
1441−.PP
1442−Note that link labels are not case sensitive.
1443−So, this will work:
1444−.IP
1445−.nf
1446−\f[C]
1447−Here\ is\ [my\ link][FOO]
1448−
1449−[Foo]:\ /bar/baz
1450−\f[]
1451−.fi
1452−.PP
1453−In an \f[I]implicit\f[] reference link, the second pair of brackets is
1454−empty, or omitted entirely:
1455−.IP
1456−.nf
1457−\f[C]
1458−See\ [my\ website][],\ or\ [my\ website].
1459−
1460−[my\ website]:\ http://foo.bar.baz
1461−\f[]
1462−.fi
1463−.SH IMAGES
1464−.PP
1465−A link immediately preceded by a \f[C]!\f[] will be treated as an image.
1466−The link text will be used as the image\[aq]s alt text:
1467−.IP
1468−.nf
1469−\f[C]
1470−![la\ lune](lalune.jpg\ "Voyage\ to\ the\ moon")
1471−
1472−![movie\ reel]
1473−
1474−[movie\ reel]:\ movie.gif
1475−\f[]
1476−.fi
1477−.SS Pictures with captions
1478−.PP
1479−\f[I]Pandoc extension\f[].
1480−.PP
1481−An image occurring by itself in a paragraph will be rendered as a figure
1482−with a caption.[4] (In LaTeX, a figure environment will be used; in
1483−HTML, the image will be placed in a \f[C]div\f[] with class
1484−\f[C]figure\f[], together with a caption in a \f[C]p\f[] with class
1485−\f[C]caption\f[].)
1486− The image\[aq]s alt text will be used as the caption.
1487−.IP
1488−.nf
1489−\f[C]
1490−![This\ is\ the\ caption](/url/of/image.png)
1491−\f[]
1492−.fi
1493−.PP
1494−If you just want a regular inline image, just make sure it is not the
1495−only thing in the paragraph.
1496−One way to do this is to insert a nonbreaking space after the image:
1497−.IP
1498−.nf
1499−\f[C]
1500−![This\ image\ won\[aq]t\ be\ a\ figure](/url/of/image.png)\\\
1501−\f[]
1502−.fi
1503−.SH FOOTNOTES
1504−.PP
1505−\f[I]Pandoc extension\f[].
1506−.PP
1507−Pandoc\[aq]s markdown allows footnotes, using the following syntax:
1508−.IP
1509−.nf
1510−\f[C]
1511−Here\ is\ a\ footnote\ reference,[^1]\ and\ another.[^longnote]
1512−
1513−[^1]:\ Here\ is\ the\ footnote.
1514−
1515−[^longnote]:\ Here\[aq]s\ one\ with\ multiple\ blocks.
1516−
1517−\ \ \ \ Subsequent\ paragraphs\ are\ indented\ to\ show\ that\ they\
1518−belong\ to\ the\ previous\ footnote.
1519−
1520−\ \ \ \ \ \ \ \ {\ some.code\ }
1521−
1522−\ \ \ \ The\ whole\ paragraph\ can\ be\ indented,\ or\ just\ the\ first
1523−\ \ \ \ line.\ \ In\ this\ way,\ multi-paragraph\ footnotes\ work\ like
1524−\ \ \ \ multi-paragraph\ list\ items.
1525−
1526−This\ paragraph\ won\[aq]t\ be\ part\ of\ the\ note,\ because\ it
1527−isn\[aq]t\ indented.
1528−\f[]
1529−.fi
1530−.PP
1531−The identifiers in footnote references may not contain spaces, tabs, or
1532−newlines.
1533−These identifiers are used only to correlate the footnote reference with
1534−the note itself; in the output, footnotes will be numbered sequentially.
1535−.PP
1536−The footnotes themselves need not be placed at the end of the document.
1537−They may appear anywhere except inside other block elements (lists,
1538−block quotes, tables, etc.)
1539−\&.
1540−.PP
1541−Inline footnotes are also allowed (though, unlike regular notes, they
1542−cannot contain multiple paragraphs).
1543−The syntax is as follows:
1544−.IP
1545−.nf
1546−\f[C]
1547−Here\ is\ an\ inline\ note.^[Inlines\ notes\ are\ easier\ to\ write,\ since
1548−you\ don\[aq]t\ have\ to\ pick\ an\ identifier\ and\ move\ down\ to\ type\ the
1549−note.]
1550−\f[]
1551−.fi
1552−.PP
1553−Inline and regular footnotes may be mixed freely.
1554−.SH CITATIONS
1555−.PP
1556−\f[I]Pandoc extension\f[].
1557−.PP
1558−Pandoc can automatically generate citations and a bibliography in a
1559−number of styles (using Andrea Rossato\[aq]s \f[C]hs-citeproc\f[]).
1560−In order to use this feature, you will need a bibliographic database in
1561−one of the following formats:
1562−.PP
1563−.TS
1564−tab(@);
1565−l l.
1566−T{
1567−Format
1568−T}@T{
1569−File extension
1570−T}
1571−_
1572−T{
1573−MODS
1574−T}@T{
1575−\&.mods
1576−T}
1577−T{
1578−BibTeX/BibLaTeX
1579−T}@T{
1580−\&.bib
1581−T}
1582−T{
1583−RIS
1584−T}@T{
1585−\&.ris
1586−T}
1587−T{
1588−EndNote
1589−T}@T{
1590−\&.enl
1591−T}
1592−T{
1593−EndNote XML
1594−T}@T{
1595−\&.xml
1596−T}
1597−T{
1598−ISI
1599−T}@T{
1600−\&.wos
1601−T}
1602−T{
1603−MEDLINE
1604−T}@T{
1605−\&.medline
1606−T}
1607−T{
1608−Copac
1609−T}@T{
1610−\&.copac
1611−T}
1612−T{
1613−JSON citeproc
1614−T}@T{
1615−\&.json
1616−T}
1617−.TE
1618−.PP
1619−You will need to specify the bibliography file using the
1620−\f[C]--bibliography\f[] command-line option (which may be repeated if
1621−you have several bibliographies).
1622−.PP
1623−By default, pandoc will use a Chicago author-date format for citations
1624−and references.
1625−To use another style, you will need to use the \f[C]--csl\f[] option to
1626−specify a CSL 1.0 style file.
1627−A primer on creating and modifying CSL styles can be found at
1628−\f[C]http://citationstyles.org/downloads/primer.html\f[].
1629−A repository of CSL styles can be found at
1630−\f[C]https://github.com/citation-style-language/styles\f[].
1631−See also \f[C]http://zotero.org/styles\f[] for easy browsing.
1632−.PP
1633−Citations go inside square brackets and are separated by semicolons.
1634−Each citation must have a key, composed of \[aq]\@\[aq] + the citation
1635−identifier from the database, and may optionally have a prefix, a
1636−locator, and a suffix.
1637−Here are some examples:
1638−.IP
1639−.nf
1640−\f[C]
1641−Blah\ blah\ [see\ \@doe99,\ pp.\ 33-35;\ also\ \@smith04,\ ch.\ 1].
1642−
1643−Blah\ blah\ [\@doe99,\ pp.\ 33-35,\ 38-39\ and\ *passim*].
1644−
1645−Blah\ blah\ [\@smith04;\ \@doe99].
1646−\f[]
1647−.fi
1648−.PP
1649−A minus sign (\f[C]-\f[]) before the \f[C]\@\f[] will suppress mention
1650−of the author in the citation.
1651−This can be useful when the author is already mentioned in the text:
1652−.IP
1653−.nf
1654−\f[C]
1655−Smith\ says\ blah\ [-\@smith04].
1656−\f[]
1657−.fi
1658−.PP
1659−You can also write an in-text citation, as follows:
1660−.IP
1661−.nf
1662−\f[C]
1663−\@smith04\ says\ blah.
1664−
1665−\@smith04\ [p.\ 33]\ says\ blah.
1666−\f[]
1667−.fi
1668−.PP
1669−If the style calls for a list of works cited, it will be placed at the
1670−end of the document.
1671−Normally, you will want to end your document with an appropriate header:
1672−.IP
1673−.nf
1674−\f[C]
1675−last\ paragraph...
1676−
1677−#\ References
1678−\f[]
1679−.fi
1680−.PP
1681−The bibliography will be inserted after this header.
1682−.SH NOTES
1683−.SS [1]
1684−.PP
1685−The point of this rule is to ensure that normal paragraphs starting with
1686−people\[aq]s initials, like
1687−.IP
1688−.nf
1689−\f[C]
1690−B.\ Russell\ was\ an\ English\ philosopher.
1691−\f[]
1692−.fi
1693−.PP
1694−do not get treated as list items.
1695−.PP
1696−This rule will not prevent
1697−.IP
1698−.nf
1699−\f[C]
1700−(C)\ 2007\ Joe\ Smith
1701−\f[]
1702−.fi
1703−.PP
1704−from being interpreted as a list item.
1705−In this case, a backslash escape can be used:
1706−.IP
1707−.nf
1708−\f[C]
1709−(C\\)\ 2007\ Joe\ Smith
1710−\f[]
1711−.fi
1712−.SS [2]
1713−.PP
1714−I have also been influenced by the suggestions of David Wheeler.
1715−.SS [3]
1716−.PP
1717−This scheme is due to Michel Fortin, who proposed it on the Markdown
1718−discussion list.
1719−.SS [4]
1720−.PP
1721−This feature is not yet implemented for RTF, OpenDocument, or ODT.
1722−In those formats, you\[aq]ll just get an image in a paragraph by itself,
1723−with no caption.
1724−.SH SEE ALSO
1725−.PP
1726−\f[C]pandoc\f[] (1).
pandoc.cabal+1−1
@@ -75,7 +75,7 @@ Extra-Source-Files:
7575 MakeManPage.hs,
7676 man/man1/pandoc.1.template,
7777 man/man5/pandoc_markdown.5.template,
78− -- generated man pages
78+ -- generated man pages (produced post-build)
7979 man/man1/markdown2pdf.1,
8080 man/man1/pandoc.1,
8181 man/man5/pandoc_markdown.5,