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

the "\begin{cases}" can not work in vuepress #26

Open lvmengtian opened 4 years ago

lvmengtian commented 4 years ago

Hello,I am using vuepress-plugin-mathjax in vuepress. Now some problems troubles me.

Content in markdown is

$$f(i>>1)=\begin{cases}f(i)& \text{i的最后一位是0}\\f(i)-1& \text{i的最后一位是1}\end{cases}$$

After building and devloping the vuepress,It doesn't work. image

But it is works in https://www.mathjax.org/#demoimage

osdio commented 4 years ago

+1

BruceYuj commented 3 years ago

+1

BanMing commented 3 years ago

+1

MarcusMogg commented 3 years ago

One solution is change the dependencies "mathjax3": "3.0.0-beta.3" to "mathjax-full": "^3.1.4", and change the file "src/tex2html" like this. But this way can only support svg because in 3.14 is another way to deal with chtml. I'm not good at vue nor node, maybe someone can solve it.