git.iko.soy/typeable/pandoc
on master help sign in
README: Documented 'unnumbered' class and '-' shortcut.
commit2a707b81715a2b4c78a424fa11f863f2ba7d861f authorJohn MacFarlane <fiddlosopher@gmail.com> dateSat 2 Mar 2013, 21:12 (14 years ago) parentf4629df
1 file changed+14−1
README+14−1
README+14−1
@@ -395,7 +395,9 @@ Options affecting specific writers
395395
396396`-N`, `--number-sections`
397397: 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.
399401
400402`--number-offset`=*NUMBER[,NUMBER,...]*,
401403: Offset for section headings in HTML output (ignored in other
@@ -926,6 +928,17 @@ the following headers will all be assigned the identifier `foo`:
926928
927929(This syntax is compatible with [PHP Markdown Extra].)
928930
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+
929942**Extension: `auto_identifiers`**
930943
931944A header without an explicitly specified identifier will be