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

fix(article): TOC link not working when the heading starts with digits #603

Merged
merged 2 commits into from
Jun 10, 2022

Conversation

lonzzi
Copy link
Contributor

@lonzzi lonzzi commented May 8, 2022

当文章目录为数字开头时,querySelector 无法正确选择到对应的元素。

替换为 getElementById 时能够解决此问题。

@CaiJimmy CaiJimmy changed the title 修复当文章目录为数字开头时无法跳转的问题 fix(article): TOC link not working when the heading starts with digits Jun 10, 2022
Copy link
Owner

@CaiJimmy CaiJimmy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@CaiJimmy CaiJimmy merged commit 7142de2 into CaiJimmy:master Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants