import {MdzLexer} from '@fuzdev/mdz/mdz_lexer.js'; Tokenizes mdz input into a flat MdzToken stream for MdzTokenParser.
The lexer owns all structural decisions — block boundaries, list level
stacks, blockquote prefix stripping (sub-lexing quote content as a
mini-document with positions remapped to source offsets), and inline
delimiter pairing bounded by #max_search_index — so the token parser
only assembles the tree.
constructor
type new (text: string): MdzLexer
text
stringtokenize
type (): MdzToken[]
MdzToken[]