You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Character references in link definition labels #616
I interpret the spec as saying that it should resolve, but then the dingus doesn’t.
This may be a bug for the dingus implementation, rather than the spec.
I agree that, to meet author expectation or intuition, character references of all kinds should be normalized in link labels (and elsewhere), especially since letter case is being ignored. Unfortunately, only a single implementation, Maruku, does it this way, although most CM-conformant parsers (and Pandoc) will happily convert any HTML entities to plain characters on output.
One label matches another just in case their normalized forms are equal.
To normalize a label,
strip off the opening and closing brackets,
perform the Unicode case fold,
strip leading and trailing whitespace and
collapse consecutive internal whitespace to a single space.
Note that matching is performed on normalized strings,
not parsed inline content.
So the following does not match,
even though the labels define equivalent inline content:
Activity
Crissov commentedon Oct 2, 2019
I agree that, to meet author expectation or intuition, character references of all kinds should be normalized in link labels (and elsewhere), especially since letter case is being ignored. Unfortunately, only a single implementation, Maruku, does it this way, although most CM-conformant parsers (and Pandoc) will happily convert any HTML entities to plain characters on output.
mgeier commentedon Oct 2, 2019
This might be related to #572.
wooorm commentedon Jul 4, 2020
Btw, I think this should be true for character escapes too:
Yields:
Both should link: [©], [!]
wooorm commentedon Jul 4, 2020
@jgm Is this something you agree with? I can create a PR to clarify the docs
vassudanagunta commentedon Jul 6, 2020
I don't think this needs clarification of the docs so much as a bug report against CommonMark.js.
That said, every single Markdown implementation but one fails this test.