MaLuns / hexo-theme-async

一个简单而轻量级的 Hexo 主题。 | A simple, lightweight Hexo theme.
https://hexo-theme-async.imalun.com
MIT License
327 stars 40 forks source link

[Bug]: markdown语法 四级标签后的都会自动添加一个# 号 #99

Closed sizdshi closed 11 months ago

sizdshi commented 11 months ago

使用的 Hexo-Theme-Asycn 版本? | What version of Hexo-Theme-Asycn are you use?

latest

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

不是 (No)

使用的浏览器? || What browse are you using?

Chrome

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

Windows

问题描述 | Describe the bug

089890f8bdfe7d0f49eb33124d2b8fb

该问题如何解决?已尝试更新hexo-renderer-markdown为hexo-renderer-markdown-it。还是不起作用

出现问题网站 | Website

https://www.tctech.asia/2023/09/26/2020-03-25/

MaLuns commented 11 months ago

这个是主题里加的, 可以通过添加样式去掉

h4:before,
h5:before,
h6:before {
    content: unset;
}
sizdshi commented 11 months ago

这个具体是在哪个配置文件里添加呀?还是说是在md文件中自己写呢?

MaLuns commented 11 months ago

source/_data/style/index.less

这个文件里,没有的话按照目录新建一个

sizdshi commented 11 months ago

大佬,试了一下不起作用。 41e1f42b5cc34cbafea7ad3a2ab0378 b32f67ffdb31015ed850efeded05ced

MaLuns commented 11 months ago

大佬,试了一下不起作用。 41e1f42b5cc34cbafea7ad3a2ab0378 b32f67ffdb31015ed850efeded05ced

那应该是css 优先级不够你调整下或者直接 !important

sizdshi commented 11 months ago

起作用了。 给不知道怎么添加的人:

h4:before,
h5:before,
h6:before {
    content: unset !important;
}