CHENXCHEN / hexo-renderer-markdown-it-plus

Markdown-it is a markdown parser, done right. A faster and CommonMark compliant alternative for Hexo.
https://chchc.me/hexo-article/2017/07/27/hexo-renderer-markdown-it-plus-plugin-demo/
MIT License
115 stars 22 forks source link

有些Katex公式不支持 #21

Open DolaBMOon opened 5 years ago

DolaBMOon commented 5 years ago

比如说

$$ {n \brace m} $$

会被直接显示.

该如何解决呢?

谢谢!

DolaBMOon commented 5 years ago

以及如何关闭Katex?

BrianYi commented 5 years ago

最初的问题是这样: image 解决以后是这样: image

我的解决方法是在themes\next\source\css\_custom\custom.styl中修改,将多余的隐藏掉,由于原来不知道是自己配置问题还是什么原因,像$$...$$这样的行间公式不会自动置中,于是又多加了下面那行text-align:center

.katex-html {
    display: none;
}
.katex-block {
    text-align: center;
}

我喜欢使用mathjax语法,所以配置文件themes\next\_config.yml中是这样 2019051822124622

BrianYi commented 5 years ago

@DolaBMOon 你看看能解决你的问题吗

MakerGYT commented 4 years ago

试试markdown-it-latex2img,服务端渲染,稳定可靠

$$
{n \brace m}
$$