vuepress
vuepress copied to clipboard
锚点解析错误
- [x] I confirm that this is an issue rather than a question.
Bug report
Steps to reproduce
vuepress版本1.9.7
当我创建这样一个H2标题时
## 测试 <Badge text="beta" type="warning"/>
并且同时使用[[toc]]展示目录,点击目录内的标题跳转到对应锚点时,无法跳转,并且url变成:
http://localhost:23999/docs/guide/index/#%E6%B5%8B%E8%AF%95-badge-text-beta-type-warning
正确的应该是:
http://localhost:23999/docs/guide/index/#%E6%B5%8B%E8%AF%95
What is expected?
无
What is actually happening?
如上
Other relevant information
无
我的h3,h4标题,点击跳转的时候,也是解析错误。当点击h3,h4标题的时候,路径变成h2了,复现demo:https://mpxjs.cn/guide/advance/platform.html#%E5%8C%BA%E5%9D%97%E7%BB%B4%E5%BA%A6%E6%9D%A1%E4%BB%B6%E7%BC%96%E8%AF%91