diff options
| author | B. Scott Michel <scooter.phd@gmail.com> | 2011-09-06 20:48:33 -0700 |
|---|---|---|
| committer | John MacFarlane <fiddlosopher@gmail.com> | 2011-12-30 13:10:15 -0800 |
| commit | a5ee02c659e8bc4030c9b7b5ceafb846e2bc4e77 (patch) | |
| tree | c53f8d8c196f5afaae6b769b6865dff061515a74 /README | |
| parent | 83680430b3bda2938177d5a25e917c2e3645197a (diff) | |
| download | pandoc-a5ee02c659e8bc4030c9b7b5ceafb846e2bc4e77.tar.gz | |
ConTeXt writer: Add section labels and internal links as in HTML.
Add the ability to refer to internal links to the ConTeXt writer, just
like the HTML writer can. The 'hierarchicalize' function generates
unique names for sections, which can be used for references in ConTeXt,
just as they can be in HTML.
The ConTeXt writer adds these unique identifiers to each \section and
does special processing of the Link target to see if it starts with a
'#' (hash symbol), which is the tip-off that the link is an internal
link.
Diffstat (limited to 'README')
| -rw-r--r-- | README | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -707,13 +707,13 @@ wrapping). Consider, for example: #22, for example, and #5. -### Header identifiers in HTML ### +### Header identifiers in HTML and ConTeXt ### *Pandoc extension*. -Each header element in pandoc's HTML output is given a unique -identifier. This identifier is based on the text of the header. To -derive the identifier from the header text, +Each header element in pandoc's HTML and ConTeXt output is given a +unique identifier. This identifier is based on the text of the header. +To derive the identifier from the header text, - Remove all formatting, links, etc. - Remove all punctuation, except underscores, hyphens, and periods. @@ -745,10 +745,10 @@ also make it easy to provide links from one section of a document to another. A link to this section, for example, might look like this: See the section on - [header identifiers](#header-identifiers-in-html). + [header identifiers][#header-identifiers-in-html]. Note, however, that this method of providing links to sections works -only in HTML. +only in HTML and ConTeXt formats. If the `--section-divs` option is specified, then each section will be wrapped in a `div` (or a `section`, if `--html5` was specified), |
