goessner / mdmath

LaTeX Math for Markdown inside of Visual Studio Code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiline queations with utf-8 characters ahead does not render correcly.

sandyUni opened this issue · comments

Summary

Multiline queations with utf-8 characters ahead does not render correcly.
...

Expected behavior

the source code of

image

should be
image

Actual behavior

the equation is not rendered
image

Code example

这样
$$
so(3)=\{\phi \in R^3,\ \mathbf{\Phi}=\phi^\wedge \in \mathbb{R}^{3\times 3}\}
$$

However

这样

$$
so(3)=\{\phi \in R^3,\ \mathbf{\Phi}=\phi^\wedge \in \mathbb{R}^{3\times 3}\}
$$

will be rendered correctly.

Related links

Environment

     Operating system:  whatever
       VSCode version: 1.56.2
Markdown+Math version: 2.5.0

it is the same with non-utf8 text ... so

non-utf8
$$
so(3)=\{\phi \in R^3,\ \mathbf{\Phi}=\phi^\wedge \in \mathbb{R}^{3\times 3}\}
$$

also behaves the same.

This basically is a constraint from markdown-it, as display math requires a newline in order to be recognized as a new block element.

But surprisingly ...

这样 $$so(3)=\{\phi \in R^3,\ \mathbf{\Phi}=\phi^\wedge \in \mathbb{R}^{3\times 3}\}$$ 这样

... written alltogether on a single line works due to new Pandoc compatibility ... try it out.