Skip to content
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

脚注锚点失效 #879

Open
foxfire881 opened this issue Aug 24, 2024 · 6 comments
Open

脚注锚点失效 #879

foxfire881 opened this issue Aug 24, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@foxfire881
Copy link

之前修复 #790 的问题时,只改了 toc 的点击滚动代码,脚注的锚点还是用链接形式,点击一下就跳转走了没有适配 Vue单页面应用

@foxfire881 foxfire881 changed the title 脚注链接失效 脚注锚点失效 Aug 24, 2024
@sunsonliu sunsonliu added the bug Something isn't working label Aug 26, 2024
@foxfire881
Copy link
Author

0.8.47 测试未修复,点击脚注无法回滚到指定位置(顶部toc,以及侧边工具条的toc是可以正常滚动到目标位置的)

@foxfire881 foxfire881 reopened this Sep 9, 2024
@foxfire881
Copy link
Author

foxfire881 commented Sep 9, 2024

点击后无法回滚到目标位置,应该是在这个feat里 只适配了toc,脚注没有适配滚动条在window的情况

捕获

@lai397826696
Copy link

image
hash模式路由下,标题里的这些定位也是没有解决的,看下能否一并解决?

@sunsonliu
Copy link
Collaborator

收到收到。。。我们再改改。。感谢反馈哈~

@sunsonliu
Copy link
Collaborator

image hash模式路由下,标题里的这些定位也是没有解决的,看下能否一并解决?

咦,不对呀,如果应用使用了hash路由,其实就不建议放出来标题旁边的超链接了。。建议修改配置去掉标题旁的超链接。配置如下:engine.syntax.header.anchorStyle = 'none'

@lai397826696
Copy link

image hash模式路由下,标题里的这些定位也是没有解决的,看下能否一并解决?

咦,不对呀,如果应用使用了hash路由,其实就不建议放出来标题旁边的超链接了。。建议修改配置去掉标题旁的超链接。配置如下:engine.syntax.header.anchorStyle = 'none'

感谢,看配置大全可能看漏了,就脚注跳转的问题了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants