aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-03-02 21:12:00 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-03-02 21:12:00 -0800
commit2a707b81715a2b4c78a424fa11f863f2ba7d861f (patch)
tree77720f1e4e3e936faf0503179c01aa8190896a3e /README
parentf4629df14adbbcca8b843ce4ae6a9dd6161f6ec6 (diff)
downloadpandoc-2a707b81715a2b4c78a424fa11f863f2ba7d861f.tar.gz
README: Documented 'unnumbered' class and '-' shortcut.
Diffstat (limited to 'README')
-rw-r--r--README15
1 files changed, 14 insertions, 1 deletions
diff --git a/README b/README
index b9d0e321b..39c69d08f 100644
--- a/README
+++ b/README
@@ -395,7 +395,9 @@ Options affecting specific writers
`-N`, `--number-sections`
: Number section headings in LaTeX, ConTeXt, HTML, or EPUB output.
- By default, sections are not numbered.
+ By default, sections are not numbered. Sections with class
+ `unnumbered` will never be numbered, even if `--number-sections`
+ is specified.
`--number-offset`=*NUMBER[,NUMBER,...]*,
: Offset for section headings in HTML output (ignored in other
@@ -926,6 +928,17 @@ the following headers will all be assigned the identifier `foo`:
(This syntax is compatible with [PHP Markdown Extra].)
+Headers with the class `unnumbered` will not be numbered, even if
+`--number-sections` is specified. A single hyphen (`-`) in an attribute
+context is equivalent to `.unnumbered`, and preferable in non-English
+documents. So,
+
+ # My header {-}
+
+is just the same as
+
+ # My header {.unnumbered}
+
**Extension: `auto_identifiers`**
A header without an explicitly specified identifier will be