Repository navigation
Inline KaTeX ($formula$) not rendering in Markdown editor #8133
|
Inline KaTeX formulas using |
Replies: 1 comment
|
On 3.x, inline math goes in backticks inside the dollars, the same syntax GitHub and GitLab use: The energy of a body at rest is $`E = mc^2`$, and the roots are $`\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}`$.A bare Two related things:
::block-katex
```latex
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
```
::I ran the inline-math plugin from 3.0.0-beta.705 through markdown-it. |
On 3.x, inline math goes in backticks inside the dollars, the same syntax GitHub and GitLab use:
A bare
$E = mc^2$is never treated as math. That's deliberate, so$5 and $10or$HOMEin a sentence stay as text. It's spelled out in the hint under Administration > Editors > Markdown > Inline Math (the KaTeX/MathJax setting you switched). Your build has the feature: 3.0.0-beta.663 is commit ac0b3a3, the push right after inline math landed in ad59894 (plugin source).Two related things: