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

公式渲染无法使用 #20

Closed xiang578 closed 2 years ago

xiang578 commented 6 years ago

按照 README 文件中的方法安装插件之后,无法渲染公式。比如这个 https://xiang578.com/2018/10/01/math-test/ 页面,查看网页源代码,已经将 katex 的文件导入了。

_config.yml 的相关配置如下:

markdown_it_plus:
  highlight: true
  html: true
  xhtmlOut: true
  breaks: true
  langPrefix:
  linkify: true
  typographer:
  quotes: “”‘’
  plugins:
    - plugin:
        name: markdown-it-katex
        enable: true
    - plugin:
        name: markdown-it-mark
        enable: false
CHENXCHEN commented 5 years ago

看上去像是插件没有起作用。你可以参考这个 demo project 来对比