Skip to main content

Module preprocess

Module preprocess 

Source
Expand description

normalize + preprocess pipeline, ported from markmend/core/src/preprocess/index.ts and vendored/markdown-utils.ts.

Structs§

PreprocessOptions

Functions§

normalize
preprocess
Ordered preprocess steps — order matters (ported from DEFAULT_PREPROCESS_STEP_NAMES).
preprocess_latex
/\\\[(.*?)\\\]/ -> $$...$$ (single-line bracket math) /\\\[([\s\S]*?)\\\]/ -> $$...$$ (block bracket math) /\\\((.*?)\\\)/ -> $$...$$ (paren math) /(^|[^\\])\$(.+?)\$/ -> $1$$$2$ (dollar math)