diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2013-01-03 20:32:15 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2013-01-03 20:35:01 -0800 |
commit | c435e9cda7eb73cf4d8c446bb829079dddfaedbc (patch) | |
tree | cc52c835729c925e6b2e20cb345f05dac7f4fb43 /README | |
parent | 56ff5e1845363dea91423b785f1c28cabed213bb (diff) |
Implemented `Ext_header_identifiers`, `Ext_implicit_header_references`.
Now by default pandoc will act as if link references have been defined
for all headers. So, you can do this:
# My header
Link to [My header].
Another link to [it][My header].
Closes #691.
Diffstat (limited to 'README')
-rw-r--r-- | README | 26 |
1 files changed, 25 insertions, 1 deletions
@@ -858,7 +858,7 @@ wrapping). Consider, for example: ### Header identifiers in HTML, LaTeX, and ConTeXt ### -**Extension** +**Extension: `header_identifiers`** 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. @@ -906,6 +906,30 @@ and the identifier will be attached to the enclosing `<div>` sections to be manipulated using javascript or treated differently in CSS. +**Extension: `implicit_header_references`** + +Pandoc behaves as if reference links have been defined for each header. +So, instead of + + [header identifiers](#header-identifiers-in-html) + +you can simply write + + [header identifiers] + +or + + [header identifiers][] + +or + + [the section on header identifiers][header identifiers] + +If there are multiple headers with identical text, the corresponding +reference will link to the first one only, and you will need to use explicit +links to link to the others, as described above. + +Unlike regular reference links, these references are case-sensitive. Block quotations ---------------- |