Commit 15467c7
Fix LaTeX rendering in hover explanations
Add KaTeX rendering for inline math formulas ($...$) in term definitions displayed in hover explanations.
- Add renderLatexInText() function to process $...$ LaTeX syntax
- Update showDefinition() to render LaTeX before displaying
- Fixes: $V(x)$, $\hbar$, $m$, etc. now render as formatted math
Example: "$V(x)$ represents forces" → properly formatted V(x)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 4087dbd commit 15467c7
1 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
5 | 16 | | |
6 | 17 | | |
7 | 18 | | |
| |||
76 | 87 | | |
77 | 88 | | |
78 | 89 | | |
79 | | - | |
| 90 | + | |
80 | 91 | | |
81 | 92 | | |
82 | 93 | | |
| |||
0 commit comments