git.iko.soy/typeable/pandoc
on master help sign in
README: Documented 'unnumbered' class and '-' shortcut.
2a707b8John MacFarlane
README+14−1
@@ -395,7 +395,9 @@ Options affecting specific writers
395
395
396`-N`, `--number-sections`
396`-N`, `--number-sections`
397: Number section headings in LaTeX, ConTeXt, HTML, or EPUB output.
397: Number section headings in LaTeX, ConTeXt, HTML, or EPUB output.
398− By default, sections are not numbered.
398+ By default, sections are not numbered. Sections with class
399+ `unnumbered` will never be numbered, even if `--number-sections`
400+ is specified.
399
401
400`--number-offset`=*NUMBER[,NUMBER,...]*,
402`--number-offset`=*NUMBER[,NUMBER,...]*,
401: Offset for section headings in HTML output (ignored in other
403: Offset for section headings in HTML output (ignored in other
@@ -926,6 +928,17 @@ the following headers will all be assigned the identifier `foo`:
926
928
927(This syntax is compatible with [PHP Markdown Extra].)
929(This syntax is compatible with [PHP Markdown Extra].)
928
930
931+Headers with the class `unnumbered` will not be numbered, even if
932+`--number-sections` is specified. A single hyphen (`-`) in an attribute
933+context is equivalent to `.unnumbered`, and preferable in non-English
934+documents. So,
935+
936+ # My header {-}
937+
938+is just the same as
939+
940+ # My header {.unnumbered}
941+
929**Extension: `auto_identifiers`**
942**Extension: `auto_identifiers`**
930
943
931A header without an explicitly specified identifier will be
944A header without an explicitly specified identifier will be