From a5ee02c659e8bc4030c9b7b5ceafb846e2bc4e77 Mon Sep 17 00:00:00 2001 From: "B. Scott Michel" Date: Tue, 6 Sep 2011 20:48:33 -0700 Subject: 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. --- README | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'README') diff --git a/README b/README index e6396c62c..7949c54d5 100644 --- a/README +++ b/README @@ -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), -- cgit v1.2.3