vuepress / vuepress-plugin-mathjax

:page_with_curl: Use TeX in VuePress.
https://vuepress.github.io/plugins/mathjax.html
MIT License
32 stars 10 forks source link

Single character in markdown is rendered as a block element #36

Closed hamishwillee closed 3 years ago

hamishwillee commented 3 years ago

The text $x$ renders as a block rather than an inline element in vuepress. The workaround is to make it look like more of an equation, but the fact you have to do this feels like a flaw.

You can verify with this test markdown

This renders inline $x{}$ but this $x$ is rendered as a block element.

You should see this: image

This is using default vuepress configuration in the default theme.