diff options
| author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2006-12-20 00:25:54 +0000 |
|---|---|---|
| committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2006-12-20 00:25:54 +0000 |
| commit | 5cf769b1cd1d9e76ff5f543aba8b4a15a90b7d88 (patch) | |
| tree | c09f786f43f29aba1bdd43587fec0c5162ae441a /README | |
| parent | c1ebe94e40a66a092c2cd501eda1edb5ec216938 (diff) | |
| download | pandoc-5cf769b1cd1d9e76ff5f543aba8b4a15a90b7d88.tar.gz | |
Modified the HTML writer to add invisible anchors to each section
heading. The anchors are derived form the text of the section
heading as described in README. This makes it easy to insert
links that jump from one part of a document to another:
for example, '[back to the Introduction](#Introduction)'.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@246 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'README')
| -rw-r--r-- | README | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -261,6 +261,26 @@ markdown test suite, type `make test-markdown`.) [standard markdown]: http://daringfireball.net/projects/markdown/syntax +## Section Headings + +Pandoc creates an invisible anchor in front of every HTML section +heading. The ID of this anchor is derived from the section heading +itself: spaces are converted to underscores, and formatting, links, +and other markup are removed. Thus, for example, the source + + ## Aristotle's *De Anima* + +gets converted to HTML as follows: + + <a id="Aristotle's_De_Anima"></a> + <h2>Aristotle's <em>De Anima</em></h2> + +This makes it easy to provide internal links that jump to a particular +place in a document. To provide a link to the heading above, for +example, just insert: + + [Back to Aristotle](#Aristotle's_De_Anima) + ## Lists Pandoc behaves differently from standard markdown on some "edge |
