Candinya / Kratos-Rebirth

一个可爱而现代的 Hexo 主题
GNU General Public License v3.0
630 stars 80 forks source link

Bug 回报:标题选中渲染错误 #146

Closed Lotuses-robot closed 2 years ago

Lotuses-robot commented 2 years ago
  1. 对Bug的描述: 如图 image

  2. 复现Bug的方法: 可访问 Blog 选中目录。(只有 Linux 会有 Bug) Markdown 内为 '######'

  3. 期望的行为: 没有同时多个选中的吧。 而且仔细看有一个小黑点。

  4. 相关的截图: image

  5. 运行环境(如果该Bug的产生和环境有关,例如浏览器不兼容导致): win11 21h1 edge 103.0.1264.71 构建于 github

Lotuses-robot commented 2 years ago

能看到图片吗?😆

Lotuses-robot commented 2 years ago

看到了 Console 里面有 error 大概是标题选中高亮切换渲染的 error 我觉得问题出在 md 渲染为 html 的时候渲染错了

Lotuses-robot commented 2 years ago

修改了 html 然后不报错了 :) 好了,应该就是 html 生成的问题

Lotuses-robot commented 2 years ago

嗯,好吧找到问题了。 hexo 的 toc() 默认要求标题优先级连续,然而我没有。 markdown 好像没有要求要连续啊aw