From 24ee1ab4f739d9f89e3d2741d841a99ebaaafabf Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 13 May 2015 23:02:54 -0700 Subject: Markdown reader: Made implicit header references case-insensitive. Added `stateHeaderKeys` to `ParserState`; this is a `KeyTable` like `stateKeys`, but it only gets consulted if we don't find a match in `stateKeys`, and if `Ext_implicit_header_references` is enabled. Closes #1606. --- README | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'README') diff --git a/README b/README index 4225da89e..9afacf637 100644 --- a/README +++ b/README @@ -1269,10 +1269,17 @@ 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. +Like regular reference links, these references are case-insensitive. -Note: if you have defined an explicit identifier for a header, -then implicit references to it will not work. +Explicit link reference definitions always take priority over +implicit header references. So, in the following example, the +link will point to `bar`, not to `#foo`: + + # Foo + + [foo]: bar + + See [foo] Block quotations ---------------- -- cgit v1.2.3