miaolz123 / vue-markdown

A Powerful and Highspeed Markdown Parser for Vue
https://miaolz123.github.io/vue-markdown/
MIT License
1.89k stars 257 forks source link

能否支持特殊字符包围的文本原样输出? #7

Closed wukaikailive closed 7 years ago

wukaikailive commented 7 years ago

我遇到的问题是这样的,我需要支持laTex公式,先用vue-markdown渲染一次后,再用mathjax渲染一次。书写LaTex公式时,需要被$或者$$包围起来,使用vue-markdown渲染后会在原来的公式前后包围一个p标签,导致mathjax无法正确解析LaTex公式,有什么办法可以解决这个问题吗?或者说通过某些配置,让vue-markdown不处理$或者$$包围的文本?

brianbancroft commented 7 years ago

Hi there, I can't read or speak Chinese, but it appears that mathjax is wanted as an enhancement?

UPDATE

Is KaTeX an acceptable alternative to Mathjax or LaTeX? If so I was able to make this happen:

screen shot 2017-01-01 at 10 13 24 pm

The downside is that you have to explicitly include a couple stylesheets.

Here's my fork. If you like it, I'll document and PR https://github.com/brianbancroft/vue-markdown

Aleksey-Danchin commented 6 years ago

https://github.com/brianbancroft/vue-markdown has 404 status