fix(editor): latex wrong config (#12578)

Closes: BS-2782

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **New Features**
  - Added KaTeX as a dependency to improve LaTeX rendering support.
  - KaTeX styles are now applied globally for consistent math formatting.

- **Refactor**
  - Updated LaTeX rendering to use inline math mode and removed MathML output.

- **Tests**
  - Enhanced inline LaTeX tests with snapshot-based verification for consistent rendering.
  - Added new snapshot files capturing expected LaTeX rendering outputs for various scenarios.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Saul-Mirone
2025-05-28 02:23:45 +00:00
parent 9220b973c7
commit f5f959692a
10 changed files with 33 additions and 28 deletions
+1
View File
@@ -455,6 +455,7 @@ __metadata:
is-svg: "npm:^6.0.0"
jotai: "npm:^2.10.3"
jotai-scope: "npm:^0.7.2"
katex: "npm:^0.16.11"
lib0: "npm:^0.2.99"
lit: "npm:^3.2.1"
lodash-es: "npm:^4.17.21"