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

Can not use \begin{pmatrix}..\end{pmatrix} #8

Open yunabe opened 5 years ago

yunabe commented 5 years ago

Input markdown:

$$\begin{pmatrix}a&b&c\\d&e&f\end{pmatrix}$$

Expected:

A beautiful 3x2 matrix is rendered.

Actual:

The equation is just copied to <p>.

<p>\begin{pmatrix}a&amp;b&amp;c\\d&amp;e&amp;f\end{pmatrix}</p>

Versions

"vuepress": "^1.0.0-alpha.47",
"vuepress-plugin-mathjax": "^1.2.4"

Minimal example site

I created a minimal vuepress site to reproduce this:

git clone https://github.com/yunabe/vuepress-plugin-mathjax-bug8.git
cd vuepress-plugin-mathjax-bug8
yarn
yarn dev

Then, open http://localhost:8080/#matrix

shigma commented 5 years ago

It seems to be a mathjax3 issue.

AmazingMoon commented 4 years ago

Hello, when will this syntax support be completed? @Shigma

AmazingMoon commented 4 years ago

@yunabe This plugin can solve the problem, I tried it. vuepress-plugin-latex

manashmandal commented 4 years ago

I'm using this plugin. Working like charm!