0323

修复BUG

修复一级标题无法跳转的问题,由于hexo-renderer-markdown-it的缘故,该渲染器默认配置anchor的等级level为2所以无法对leve 1的1级标题跳转。
此处换成@upupming/hexo-renderer-markdown-it-plus渲染器,配置文档,实测不怎么样,某些插件无法渲染,又大稳定性又差
就用hexo-renderer-markdown-it
并在配置文件中加入

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Markdown config
markdown:
render:
html: true
xhtmlOut: false
breaks: true
linkify: false
typographer: false
quotes: '“”‘’'
plugins:
- markdown-it-abbr
- markdown-it-footnote
- markdown-it-sub
- markdown-it-sup
- markdown-it-ins
anchors:
level: 1

一定要hexo clean不然无效!!!
其中linkify: false如果为true会对所有类似网址的文字渲染成网页故为false
并且支持X^2^为X2 引用[^1]显示为引用[1] 只需再加上 [^1]: basic footnote content
遇到 npm ERR! Unexpected token in JSON at position 1 while parsing near是网速原因,换成国内源就行。

JURRY

离散法留数传函

状态方程的解_x264

修复VUE组件图标不显示问题

发现VUE notice图标不显示,根据文档VUE弹窗发现,VUE弹窗仅需引入两个js和一个css,这也就排除了因代码错误导致的无法显示问题
对三个js分析,经排查css与图标显示有关,本地化的css/js路径在E:\GItBK-UI2\themes\butterfly\source\js\,故统一改为cdn引用,通过测试。


  1. basic footnote content ↩︎