aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-07-15 19:01:00 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2010-07-15 22:26:45 -0700
commit9be9bccfcfc2c46459b3da963bc59a37f841fe8a (patch)
tree1ecfb499923d950426d8ca1cc12e1c28291ae235 /README
parent57a91f3b6add303ef70aa29a14a8c67123ec7c0f (diff)
downloadpandoc-9be9bccfcfc2c46459b3da963bc59a37f841fe8a.tar.gz
Added --section-divs option.
+ Header identifiers now get attached to the headers, unless --section-divs is specified, in which case they are added to enclosing divs. By default, the divs are not added. + Resolves Issue #230, #239.
Diffstat (limited to 'README')
-rw-r--r--README11
1 files changed, 11 insertions, 0 deletions
diff --git a/README b/README
index 6c3a61ca5..72d2c01b5 100644
--- a/README
+++ b/README
@@ -400,6 +400,11 @@ For further documentation, see the `pandoc(1)` man page.
: causes sections to be numbered in LaTeX, ConTeXt, or HTML output.
By default, sections are not numbered.
+`--section-divs`
+: causes sections to be wrapped in `<div>` tags. In this case,
+ [section identifiers](#header-identifiers-in-html)
+ are attached to the enclosing `<div>` rather than the header itself.
+
`--no-wrap`
: disables text-wrapping in output. By default, text is wrapped
appropriately for the output format.
@@ -1170,6 +1175,12 @@ another. A link to this section, for example, might look like this:
Note, however, that this method of providing links to sections works
only in HTML.
+If the `--section-divs` option is specified, then each section will
+be wrapped in a `div`, and the identifier will be attached to the
+enclosing `<div>` tag rather than the header itself. This allows entire
+sections to be manipulated using javascript or treated differently in
+CSS.
+
Blank lines before headers and blockquotes
------------------------------------------