constructor
type new (text: string): MdzLexer
text
stringtokenize
type (): MdzToken[]
MdzToken[]mdz lexer — tokenizes input into a flat MdzToken[] stream.
Phase 1 of the two-phase lexer+parser alternative to the single-pass parser in mdz.ts. Phase 2 is in mdz_token_parser.ts.
23 declarations
constructortype new (text: string): MdzLexer
textstringtokenizetype (): MdzToken[]
MdzToken[]MdzToken MdzTokenAutolink type'autolink'referencestringlink_type'external' | 'internal'MdzTokenBase startnumberendnumberMdzTokenBoldClose type'bold_close'MdzTokenBoldOpen type'bold_open'MdzTokenCode type'code'contentstringMdzTokenCodeblock type'codeblock'langstring | nullcontentstringMdzTokenHeadingEnd type'heading_end'MdzTokenHeadingStart type'heading_start'level1 | 2 | 3 | 4 | 5 | 6MdzTokenHr type'hr'MdzTokenItalicClose type'italic_close'MdzTokenItalicOpen type'italic_open'MdzTokenLinkRef type'link_ref'referencestringlink_type'external' | 'internal'MdzTokenLinkTextClose type'link_text_close'MdzTokenLinkTextOpen type'link_text_open'MdzTokenParagraphBreak type'paragraph_break'MdzTokenStrikethroughClose type'strikethrough_close'MdzTokenStrikethroughOpen type'strikethrough_open'MdzTokenTagClose type'tag_close'namestringMdzTokenTagOpen type'tag_open'namestringis_componentbooleanMdzTokenTagSelfClose type'tag_self_close'namestringis_componentbooleanMdzTokenText type'text'contentstring