Closed inkss closed 4 years ago
Have you solved this problem? I get a similar situation. I want to use "hexo-renderer-kramed": "^0.1.4", but "hexo-renderer-markdown-it": "^3.4.1" render LaTex conflicted with hexo-renderer-kramed.
@fuhailin 没有替换,安装完插件后,不需要改动配置,只需要对主题文件稍作修改:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/katex.min.js"></script>
将以上两行加入到网页的 head
标签里。此外,这里对公式渲染使用的是 KaTex 而非 LaTex 。
你好,我先在配置里把
markdown-it-katex
关掉了:然后安装了
hexo-math
,但是发现文章公式部分并没有渲染,请问如何解决呢?