From fa52c3c4d6c21a26c838fa33de2d7fa447f9499e Mon Sep 17 00:00:00 2001 From: haoyuren <13851610112@163.com> Date: Fri, 13 Mar 2026 18:02:10 -0500 Subject: 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 --- package.json | 2 ++ 1 file changed, 2 insertions(+) (limited to 'package.json') 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", -- cgit v1.2.3