Feature Request: Live LaTeX / Math Preview
Problem
GitHub natively supports LaTeX math rendering in comments using $...$ (inline) and $$...$$ (block) syntax via MathJax. However, the extension currently has no preview support for LaTeX. Math expressions are shown as raw text while editing, breaking the WYSIWYG experience.
Expected Behavior
Math expressions should render live in the editor, matching what GitHub will display after submission/in preview:
- Inline:
$E = mc^2$ → $E = mc^2$ (rendered inline math)
- Block:
$$
\int_0^\infty e^{-x^2} dx = \frac{\sqrt{\pi}}{2}
$$
→
$$\int_0^\infty e^{-x^2} dx = \frac{\sqrt{\pi}}{2}$$
(rendered as a math block in a new line)
Suggested Implementation
Since the editor is already built on ProseMirror, prosemirror-math with KaTeX could be a good fit — it provides inline and block math node support with live rendering and is well-maintained.
Context
This would be especially useful for users writing math-heavy issues, discussions, or PR reviews (e.g. in scientific/ML/engineering repos).
Feature Request: Live LaTeX / Math Preview
Problem
GitHub natively supports LaTeX math rendering in comments using
$...$(inline) and$$...$$(block) syntax via MathJax. However, the extension currently has no preview support for LaTeX. Math expressions are shown as raw text while editing, breaking the WYSIWYG experience.Expected Behavior
Math expressions should render live in the editor, matching what GitHub will display after submission/in preview:
$E = mc^2$→→
$$\int_0^\infty e^{-x^2} dx = \frac{\sqrt{\pi}}{2}$$
(rendered as a math block in a new line)
Suggested Implementation
Since the editor is already built on ProseMirror,
prosemirror-mathwith KaTeX could be a good fit — it provides inline and block math node support with live rendering and is well-maintained.Context
This would be especially useful for users writing math-heavy issues, discussions, or PR reviews (e.g. in scientific/ML/engineering repos).