/** * LaTeX delimiter normalization for Feishu upload. * * lark-cli's markdown parser applies italic parsing to _ inside math delimiters * ($, $$, ), breaking multi-subscript formulas. * * Fix: insert \mkern0mu between } and _ to break the italic trigger. * \mkern0mu is a zero-width TeX kern (renders as nothing) — it ends with the * letter 'u', which is a word character. Markdown italic openers require the _ * to be preceded by a non-word char; inserting \mkern0mu ensures _ is preceded * by 'u' instead of '}', making it invisible to the italic parser. * * Strategy: * \[...\] → $\mkern0mu-protected content$ (display → inline) * \(...\) → $\mkern0mu-protected content$ (inline) * $$\n...\n$$ → $\mkern0mu-protected content$ (collapse multi-line) * $...$ → $\mkern0mu-protected content$ (protect pass-through) * $$...$$ → $$\mkern0mu-protected content$$ (protect pass-through) */ /** * Normalize LaTeX math delimiters for lark-cli. * * Converts \[...\] and \(...\) to $...$ with protected subscripts. * Collapses multi-line $$...$$ to single-line with protected subscripts. * Also protects existing $...$ and $$...$$ pass-through content. * * Skips code fences (``` blocks) and inline code (`...`). */ export declare function convertLatexToEquationTags(md: string): { text: string; inline: number; display: number; }; //# sourceMappingURL=latex.d.ts.map