From c435e9cda7eb73cf4d8c446bb829079dddfaedbc Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 3 Jan 2013 20:32:15 -0800 Subject: 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. --- README | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'README') 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 `
` 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 ---------------- -- cgit v1.2.3