Skip to main content

Module refs

Module refs 

Source
Expand description

Link- and footnote-reference tables. CM 4.7 + 6.3 + GFM footnotes require a two-pass parse: harvest all definitions first, then resolve [label] / [text][label] / [label][] references during the main parse.

Structs§

RefMap

Functions§

normalize_label
CM 4.7: case-fold + whitespace-collapse, leading/trailing trimmed. Backslash escapes are NOT unescaped here, so [foo\!] and [foo!] match different labels.
parse_link_ref_def
Parse a LinkRefDef lexeme into (label, url, title). The lexer already validated gross structure; failures here mean missing ] / :.

Type Aliases§

LinkRef
Destination URL + optional title.