jerryc127 / hexo-theme-butterfly

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

[Bug]: 公式出现重复 #1489

Closed AFelixLiu closed 3 months ago

AFelixLiu commented 5 months ago

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

4.9.0

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

是 (Yes)

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

Edge

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

Windows

依賴插件 | Package dependencies Information

hexo-site@0.0.0 D:\Hexo\blog
├── @renbaoshuo/markdown-it-katex@2.0.2
├── hexo-abbrlink@2.2.1
├── hexo-butterfly-clock-anzhiyu@1.1.8
├── hexo-deployer-git@4.0.0
├── hexo-generator-archive@2.0.0
├── hexo-generator-category@2.0.0
├── hexo-generator-index@3.0.0
├── hexo-generator-searchdb@1.4.1
├── hexo-generator-tag@2.0.0
├── hexo-renderer-ejs@2.0.0
├── hexo-renderer-markdown-it@7.1.1
├── hexo-renderer-pug@3.0.0
├── hexo-renderer-stylus@2.1.0
├── hexo-server@3.0.0
├── hexo-wordcount@6.0.1
├── hexo@6.3.0
├── katex@0.16.9
└── uuid@9.0.0

問題描述 | Describe the bug

在文章预览页,即文章节选部分,出现公式重复,”$$”使用这个的情况,如果标题包含"$$"的公式也会出现重复,打开文章时,目录中公式重复,但文章内容不会出现 1 2 3

出現問題網站 | Website

https://afelixliu.site/posts/5a711144/

AFelixLiu commented 5 months ago

源码如下:

“### $1NF$ 若关系模式 $R$ 的每一个分量都是不可再分的数据项,则关系模式 $R$ 属于第一范式($1NF$)。“ --引号为了防止markdown渲染

jerryc127 commented 5 months ago

image

主頁的文章节选部分 和 toc 都是 hexo 自帶的代碼生成

其生成的文字會導致一些公式的文字不同

image

同時, 因爲考慮到 UI 問題,數學公式渲染 只會渲染 post 或者 page 的文章範圍

github-actions[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.