git.iko.soy/typeable/pandoc
on master help sign in
Don't capitalize header links in man page.

Also regenerated man page from latest README.

commit7120df9dad6376a6a43b7e870350a016a720a53c authorJohn MacFarlane <jgm@berkeley.edu> dateTue 21 Jul 2015, 10:24 (11 years ago) parent225f7f1
2 files changed+25−24
man/capitalizeHeaders.hs+3−1 man/pandoc.1+22−23
man/capitalizeHeaders.hs+3−1
@@ -7,12 +7,14 @@ main = toJSONFilter capitalizeHeaders
77
88capitalizeHeaders :: Block -> Block
99capitalizeHeaders (Header 1 attr xs) = Header 1 attr $ walk capitalize xs
10−capitalizeHeaders x = walk capitalizeHeaderLinks x
10+capitalizeHeaders x = x
1111
1212capitalize :: Inline -> Inline
1313capitalize (Str xs) = Str $ map toUpper xs
1414capitalize x = x
1515
16+{-
1617capitalizeHeaderLinks :: Inline -> Inline
1718capitalizeHeaderLinks (Link xs t@('#':_,_)) = Link (walk capitalize xs) t
1819capitalizeHeaderLinks x = x
20+-}
man/pandoc.1+22−23
@@ -25,7 +25,7 @@ tables, flexible ordered lists, definition lists, fenced code blocks,
2525superscript, subscript, strikeout, title blocks, automatic tables of
2626contents, embedded LaTeX math, citations, and markdown inside HTML block
2727elements.
28−(These enhancements, described below under PANDOC\[aq]S MARKDOWN, can be
28+(These enhancements, described below under Pandoc\[aq]s markdown, can be
2929disabled using the \f[C]markdown_strict\f[] input or output format.)
3030.PP
3131In contrast to most existing tools for converting markdown to HTML,
@@ -64,7 +64,7 @@ pandoc\ \-s\ \-o\ output.html\ input.txt
6464.fi
6565.PP
6666For more information on how standalone documents are produced, see
67−TEMPLATES, below.
67+Templates, below.
6868.PP
6969Instead of a file, an absolute URI may be given.
7070In this case pandoc will fetch the content using HTTP:
@@ -200,7 +200,7 @@ markdown), \f[C]markdown_strict\f[] (original unextended markdown),
200200(Haddock markup), or \f[C]latex\f[] (LaTeX).
201201If \f[C]+lhs\f[] is appended to \f[C]markdown\f[], \f[C]rst\f[],
202202\f[C]latex\f[], or \f[C]html\f[], the input will be treated as literate
203−Haskell source: see LITERATE HASKELL SUPPORT, below.
203+Haskell source: see Literate Haskell support, below.
204204Markdown syntax extensions can be individually enabled or disabled by
205205appending \f[C]+EXTENSION\f[] or \f[C]\-EXTENSION\f[] to the format
206206name.
@@ -208,7 +208,7 @@ So, for example, \f[C]markdown_strict+footnotes+definition_lists\f[] is
208208strict markdown with footnotes and definition lists enabled, and
209209\f[C]markdown\-pipe_tables+hard_line_breaks\f[] is pandoc\[aq]s markdown
210210without pipe tables and with hard line breaks.
211−See PANDOC\[aq]S MARKDOWN, below, for a list of extensions and their
211+See Pandoc\[aq]s markdown, below, for a list of extensions and their
212212names.
213213.RS
214214.RE
@@ -237,14 +237,14 @@ slide show), \f[C]slideous\f[] (Slideous HTML and javascript slide
237237show), \f[C]dzslides\f[] (DZSlides HTML5 + javascript slide show),
238238\f[C]revealjs\f[] (reveal.js HTML5 + javascript slide show), \f[C]s5\f[]
239239(S5 HTML and javascript slide show), or the path of a custom lua writer
240−(see CUSTOM WRITERS, below).
240+(see Custom writers, below).
241241Note that \f[C]odt\f[], \f[C]epub\f[], and \f[C]epub3\f[] output will
242242not be directed to \f[I]stdout\f[]; an output filename must be specified
243243using the \f[C]\-o/\-\-output\f[] option.
244244If \f[C]+lhs\f[] is appended to \f[C]markdown\f[], \f[C]rst\f[],
245245\f[C]latex\f[], \f[C]beamer\f[], \f[C]html\f[], or \f[C]html5\f[], the
246−output will be rendered as literate Haskell source: see LITERATE HASKELL
247−SUPPORT, below.
246+output will be rendered as literate Haskell source: see Literate Haskell
247+support, below.
248248Markdown syntax extensions can be individually enabled or disabled by
249249appending \f[C]+EXTENSION\f[] or \f[C]\-EXTENSION\f[] to the format
250250name, as described above under \f[C]\-f\f[].
@@ -482,7 +482,7 @@ This option is set automatically for \f[C]pdf\f[], \f[C]epub\f[],
482482.B \f[C]\-\-template=\f[]\f[I]FILE\f[]
483483Use \f[I]FILE\f[] as a custom template for the generated document.
484484Implies \f[C]\-\-standalone\f[].
485−See TEMPLATES below for a description of template syntax.
485+See Templates below for a description of template syntax.
486486If no extension is specified, an extension corresponding to the writer
487487will be added, so that \f[C]\-\-template=special\f[] looks for
488488\f[C]special.html\f[] for HTML output.
@@ -559,8 +559,8 @@ Specifies the coloring style to be used in highlighted source code.
559559Options are \f[C]pygments\f[] (the default), \f[C]kate\f[],
560560\f[C]monochrome\f[], \f[C]espresso\f[], \f[C]zenburn\f[],
561561\f[C]haddock\f[], and \f[C]tango\f[].
562−For more information on syntax highlighting in pandoc, see SYNTAX
563−HIGHLIGHTING, below.
562+For more information on syntax highlighting in pandoc, see Syntax
563+highlighting, below.
564564.RS
565565.RE
566566.TP
@@ -722,7 +722,7 @@ Headers above this level in the hierarchy are used to divide the slide
722722show into sections; headers below this level create subheads within a
723723slide.
724724The default is to set the slide level based on the contents of the
725−document; see STRUCTURING THE SLIDE SHOW, below.
725+document; see Structuring the slide show, below.
726726.RS
727727.RE
728728.TP
@@ -730,7 +730,7 @@ document; see STRUCTURING THE SLIDE SHOW, below.
730730Wrap sections in \f[C]<div>\f[] tags (or \f[C]<section>\f[] tags in
731731HTML5), and attach identifiers to the enclosing \f[C]<div>\f[] (or
732732\f[C]<section>\f[]) rather than the header itself.
733−See SECTION IDENTIFIERS, below.
733+See Header identifiers, below.
734734.RS
735735.RE
736736.TP
@@ -814,7 +814,7 @@ Use the specified image as the EPUB cover.
814814It is recommended that the image be less than 1000px in width and
815815height.
816816Note that in a markdown source document you can also specify
817−\f[C]cover\-image\f[] in a YAML metadata block (see EPUB METADATA,
817+\f[C]cover\-image\f[] in a YAML metadata block (see EPUB Metadata,
818818below).
819819.RS
820820.RE
@@ -843,7 +843,7 @@ Any of these may be overridden by elements in the metadata file.
843843.PP
844844Note: if the source document is markdown, a YAML metadata block in the
845845document can be used instead.
846−See below under EPUB METADATA.
846+See below under EPUB Metadata.
847847.RE
848848.TP
849849.B \f[C]\-\-epub\-embed\-font=\f[]\f[I]FILE\f[]
@@ -1453,7 +1453,7 @@ A\ level\-two\ header
14531453.fi
14541454.PP
14551455The header text can contain inline formatting, such as emphasis (see
1456−INLINE FORMATTING, below).
1456+Inline formatting, below).
14571457.SS Atx\-style headers
14581458.PP
14591459An Atx\-style header consists of one to six \f[C]#\f[] signs and a line
@@ -1492,7 +1492,7 @@ I\ like\ several\ of\ their\ flavors\ of\ ice\ cream:
14921492#22,\ for\ example,\ and\ #5.
14931493\f[]
14941494.fi
1495−.SS Header identifiers in HTML, LaTeX, and ConTeXt
1495+.SS Header identifiers
14961496.SS Extension: \f[C]header_attributes\f[]
14971497.PP
14981498Headers can be assigned attributes using this syntax at the end of the
@@ -1876,7 +1876,7 @@ will be printed after the opening fence as a bare word.
18761876.PP
18771877To prevent all highlighting, use the \f[C]\-\-no\-highlight\f[] flag.
18781878To set the highlighting style, use \f[C]\-\-highlight\-style\f[].
1879−For more information on highlighting, see SYNTAX HIGHLIGHTING, below.
1879+For more information on highlighting, see Syntax highlighting, below.
18801880.SS Line blocks
18811881.SS Extension: \f[C]line_blocks\f[]
18821882.PP
@@ -2191,7 +2191,7 @@ Term\ 2
21912191Note that space between items in a definition list is required.
21922192(A variant that loosens this requirement, but disallows "lazy" hard
21932193wrapping, can be activated with \f[C]compact_definition_lists\f[]: see
2194−NON\-PANDOC EXTENSIONS, below.)
2194+Non\-pandoc extensions, below.)
21952195.SS Numbered example lists
21962196.SS Extension: \f[C]example_lists\f[]
21972197.PP
@@ -2911,8 +2911,8 @@ This\ is\ a\ backslash\ followed\ by\ an\ asterisk:\ `\\*`.
29112911.fi
29122912.SS Extension: \f[C]inline_code_attributes\f[]
29132913.PP
2914−Attributes can be attached to verbatim text, just as with FENCED CODE
2915−BLOCKS:
2914+Attributes can be attached to verbatim text, just as with fenced code
2915+blocks:
29162916.IP
29172917.nf
29182918\f[C]
@@ -3323,8 +3323,7 @@ See\ [my\ website].
33233323.SS Internal links
33243324.PP
33253325To link to another section of the same document, use the automatically
3326−generated identifier (see HEADER IDENTIFIERS IN HTML, LATEX, AND
3327−CONTEXT, below).
3326+generated identifier (see Header identifiers, below).
33283327For example:
33293328.IP
33303329.nf
@@ -3758,7 +3757,7 @@ the header but before any trailing \f[C]#\f[]s in an ATX header).
37583757.SS Extension: \f[C]compact_definition_lists\f[]
37593758.PP
37603759Activates the definition list syntax of pandoc 1.12.x and earlier.
3761−This syntax differs from the one described ABOVE in several respects:
3760+This syntax differs from the one described above in several respects:
37623761.IP \[bu] 2
37633762No blank line is required between consecutive items of the definition
37643763list.