summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-01-03 20:32:15 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-01-03 20:35:01 -0800
commitc435e9cda7eb73cf4d8c446bb829079dddfaedbc (patch)
treecc52c835729c925e6b2e20cb345f05dac7f4fb43 /README
parent56ff5e1845363dea91423b785f1c28cabed213bb (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--README26
1 files changed, 25 insertions, 1 deletions
diff --git a/README b/README
index 832f08e8f..ffb7a1161 100644
--- a/README
+++ b/README
@@ -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
----------------