diff options
| author | haoyuren <13851610112@163.com> | 2026-03-13 18:02:10 -0500 |
|---|---|---|
| committer | haoyuren <13851610112@163.com> | 2026-03-13 18:02:10 -0500 |
| commit | fa52c3c4d6c21a26c838fa33de2d7fa447f9499e (patch) | |
| tree | d53e8445c596aaa2eea0ea311a42768efd60593d /package.json | |
| parent | 7983c9f6df623ddda068e6fbf04423ae7f0901a6 (diff) | |
Improve editing experience: KaTeX math preview, syntax highlighting, symbol autocomplete
- Replace broken MathML math preview with KaTeX for rendered formula tooltips
- Fix syntax highlighting by using proper HighlightStyle + syntaxHighlighting() instead of non-functional CSS class overrides
- Add math region background highlighting (subtle gold tint for $...$ and $$...$$ regions)
- Add Unicode symbol previews in autocomplete for Greek letters and math operators
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/package.json b/package.json index 5e157b2..70a245a 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "@xterm/xterm": "^5.5.0", "chokidar": "^3.6.0", "diff-match-patch": "^1.0.5", + "katex": "^0.16.38", "node-pty": "^1.0.0", "pdfjs-dist": "^4.9.155", "react": "^18.3.1", @@ -35,6 +36,7 @@ }, "devDependencies": { "@types/diff-match-patch": "^1.0.36", + "@types/katex": "^0.16.8", "@types/react": "^18.3.11", "@types/react-dom": "^18.3.1", "@types/ws": "^8.18.1", |
