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
Commit aed9336
Browse filesBrowse the repository at this point in the historyBrowse files
Labels were matched with toLowerCase(), which is not the Unicode case fold
CommonMark asks for, so labels that only agree once folded never matched:
[ẞ] [Straße]
[SS]: /url [STRASSE]: /url
'ẞ'.toLowerCase() is 'ß', never 'ss'. Round-tripping through upper case
reaches the fold, the way commonmark.js normalizeReference() does; lowercasing
afterwards keeps def.tag and the tokens.links keys in the lower case form
they have always had.
The two link-map lookups in Lexer used the label verbatim, so they went
through the same helper: without it a folded key would stop the reflink
masking from finding definitions it used to find.
This turns on CommonMark example 540 (Links 81/90 -> 82/90).
0 commit comments