vuepress-plugin-mathjax icon indicating copy to clipboard operation
vuepress-plugin-mathjax copied to clipboard

Add support for blocks

Open gustawdaniel opened this issue 4 years ago • 2 comments

Expected

$$
a + b = c
$$

should works, but I need to write $a + b = c$.

In example of mathjax

https://jsbin.com/?html,output

syntax with blocks works.

gustawdaniel avatar Aug 22 '19 10:08 gustawdaniel

have you tried $$a + b = c$$

it works for me and it seems to be the adopted convention: https://vuepress.github.io/en/plugins/mathjax/#conventions

I agree though that it would be nicer to allow newline after the init block marker and newline before the closing block marker.

If it works for you as well with the change above maybe you can rephrase the issue?

fredericcogny avatar Apr 07 '20 13:04 fredericcogny

will be auto format with newline when i write md in vscode 😢 。

and I think you should remove whitespace

/(^\s*)|(\s*$)|(^\n*)|(\n*$)/g

ysqi avatar Jul 09 '20 09:07 ysqi