/** * Markdown math delimiter preprocessor. * * Disambiguates `$` characters in markdown so that remark-math correctly * distinguishes LaTeX math (`$x = \frac{1}{2}$`) from currency (`$2,847,500`). * * Uses a three-pass priority algorithm over `$` positions: * 1. Commit pairs matching LaTeX patterns (highest priority) * 2. Pair remaining positions; escape currency patterns * 3. Escape lone `$` adjacent to committed LaTeX pairs * * Also normalizes `\$` inside LaTeX spans into a KaTeX-compatible form, * since remark-math does not treat `\$` as escaped within math delimiters. * * No-ops on input without `$`. Skips fenced code blocks and inline code spans. */ /** * Preprocess markdown to disambiguate `$` math delimiters from currency signs. * * Classification priority: LaTeX (preserve) > currency (escape) > uncertain (preserve). * Skips fenced code blocks and inline code spans. */ export declare function preprocessMathDelimiters(markdown: string): string; //# sourceMappingURL=preprocessMathDelimiters.d.ts.map