Description:
The current katex.test.ts only has 2 test cases and only covers parenthesis syntax (\[...\] and \(...\)).
Missing test cases include:
- Dollar syntax (
$$...$$) block KaTeX
- Dollar syntax (
$...$) inline KaTeX
- Option gating — KaTeX delimiters treated as plain text when options are disabled
This weakens confidence in KaTeX parsing behavior, especially relevant ahead of the planned parser rewrite where test coverage is critical.
Steps to reproduce:
- Open
packages/message-parser/tests/katex.test.ts
- Observe only 2 test cases exist
- Dollar syntax and option gating have no test case
Expected behavior:
KaTeX parsing should have test coverage for all supported syntax variants and option flags.
Description:
The current
katex.test.tsonly has 2 test cases and only covers parenthesis syntax (\[...\]and\(...\)).Missing test cases include:
$$...$$) block KaTeX$...$) inline KaTeXThis weakens confidence in KaTeX parsing behavior, especially relevant ahead of the planned parser rewrite where test coverage is critical.
Steps to reproduce:
packages/message-parser/tests/katex.test.tsExpected behavior:
KaTeX parsing should have test coverage for all supported syntax variants and option flags.