Skip to content

Clarify link label matching #695

@dbuenzli

Description

@dbuenzli

In the 0.30 spec we have:

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, [...]

"Perform the Unicode case fold" is a bit unclear – in the sense I had to consult cmark to see what it was doing. If I understood correctly this is definition R4 of the Unicode standard p. 154. so maybe that could be referenced


P.S. A better definition would likely have been R5 as it would handle correctly identifiers in different normal forms (like é composed in one id and é decomposed in another one) but you'd need to import the Unicode normalization and associated machinery into the definition of CommonMark.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions