jerryc127 / hexo-theme-butterfly

🦋 A Hexo Theme: Butterfly
https://butterfly.js.org
Apache License 2.0
7.05k stars 1.27k forks source link

[Bug]: hideToggleButton未渲染数学公式 #1103

Closed hrtan99 closed 1 year ago

hrtan99 commented 1 year ago

使用的 Butterfly 版本? | What version of Butterfly are you use?

4.5.1

是否修改过主题文件? || Has the theme files been modified?

不是 (No)

使用的瀏覽器? || What browse are you using?

Chrome

使用的系統? || What operating system are you using?

macOS

問題描述 | Describe the bug

WeChate24941091dbc7eeede5d5c6db5c19d16

markdown文字:

{% hideToggle 解析 %}

✅。当字符集规模较小时,KMP算法稳定在线性复杂度$O(n+m)$,更能体现出优势;而采用BC表的BM算法,却并不能大跨度地向前移动。

{% endhideToggle %}

渲染器用的是mathjax,渲染插件是hexo-renderer-pandoc,其他页面的数学公式渲染是没问题的

出現問題網站 | Website

https://blog.arg.pub/2022/11/16/algorithm/%E6%B8%85%E5%8D%8E%E5%A4%A7%E5%AD%A6%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%8E%86%E5%B9%B4%E6%9C%9F%E6%9C%AB%E9%A2%98%E8%A7%A3%E6%9E%90/

jerryc127 commented 1 year ago

哪个渲染器?附上你出问题的那段md文字

hrtan99 commented 1 year ago

哪个渲染器?附上你出问题的那段md文字

mathjax + hexo-renderer-pandoc

jerryc127 commented 1 year ago

哪个渲染器?附上你出问题的那段md文字

mathjax + hexo-renderer-pandoc

所以你不是使用主题推荐的 mathjax 渲染器 而是使用 hexo-renderer-pandoc 的 mathjax 渲染 ?

不如你去 hexo-renderer-pandoc 问下如何?

hrtan99 commented 1 year ago

所以你不是使用主题推荐的 mathjax 渲染器 而是使用 hexo-renderer-pandoc 的 mathjax 渲染 ?

不如你去 hexo-renderer-pandoc 问下如何?

已经解决,用 hexo-renderer-pandoc 的好处是它对行内公式的支持更好,而且可以服务端预渲染成svg图片,不实时渲染加载速度更快