Expand description
Streaming preprocessors (“fix” functions), ported one-to-one from
markmend/core/src/preprocess/*.ts. Each one makes incomplete markdown
syntax parseable as it streams, so the AST stays stable.
Functions§
- find_
footnote_ refs /\[\^[^\]\s]{1,200}\](?!:)/— footnote references not followed by:.- fix_
code - fix_
delete - fix_
emphasis - fix_
footnote - fix_
html - fix_
inline_ math - fix_
link - fix_
math - fix_
strong - fix_
table - fix_
task_ list - has_
footnote_ definition - has_
footnote_ reference /\[\^[^\]\s]{1,200}\]/reference (not a definition).- strip_
closed_ code_ blocks /```[\s\S]*?```/g— remove closed code blocks from text.- strip_
inline_ code - /
[^\n]+`/g — remove inline code spans.