-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TOC锚点初始化失败? #974
Comments
你是用markdown-it渲染的嘛,我也遇到这个问题了0.0 |
对,对,就是它,难道是它的问题!! On Aug 12, 2016 16:42, "Jason" [email protected] wrote:
|
是的 所以我改造了一下hexo-markdown-it…… ——Jason
|
我的博客没有这样的问题啊,点击文章内小标题都会跳转到文章对应位置。 |
@wuxubj 不是。。真的是markdown-it的实现有差别。 默认Marked插件是没有问题的,因为他GFM支持的不太好,我就换成了Markdown-it,但是他不生成标题的id导致无法获取锚点。 |
@ivanberry dont understand u, write in English if not solved. If solved, close it please. Thank's! |
It's hexo-renderer-markdown-it's bug. |
TOC跳转链接应该是与文章标题对应的,但是md渲染后文章标题并没有对应id
期望:
## 标题 //mardown title
查看源码后,应该不是js部分有错误,js部分只是取出响应属性值,并取得offset
是md渲染出来的问题?
线上地址,可以查看我的地址:任意文章
The text was updated successfully, but these errors were encountered: