wujun234 / hexo-theme-tree

MIT License
207 stars 62 forks source link

公式编译建议 #45

Closed hermitlsr closed 1 year ago

hermitlsr commented 2 years ago

我使用了您在 readme 中推荐的公式编译插件,效果并不理想。我的是数学笔记设计很多复杂公式。 于是我使用 hexo-renderer-markdown-it-plus 渲染器解决了这一问题,该渲染器完美支持 KaTeX 使用步骤:

  1. 卸载原有的渲染器,安装新的渲染器

    npm uninstall hexo-renderer-marked --save
    npm install hexo-renderer-markdown-it-plus --save
  2. 在主题根目录设置文件中设置 _config.yml

    
    ## 原始设置
    highlight:
    enable: false

新增

markdown_it_plus: highlight: true html: true xhtmlOut: true breaks: true langPrefix: linkify: true typographer: quotes: “”‘’ plugins:

wujun234 commented 2 years ago

👍欢迎提交合并到 readme 里

wujun234 commented 1 year ago

59