Expand description
Delimiter rewrite helper for dollar-shaped renderer output.
mdwright never typesets math itself. Downstream renderers
(KaTeX, MathJax, mkdocs-material’s math plugin) do. The
recogniser tags each math region with its source delimiter family;
this module rewrites those delimiters at emit time so the resulting
bytes match the shape the downstream renderer expects.
The pass is a function rather than a method on super::MathRegion
because canonicalisation already has the (&MathSpan, &Range<usize>)
pair in scope.
Functions§
- convert_
for_ dollar - Rewrite the source bytes of a math region to dollar delimiters.