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

新功能建议: 目录中的一级标题跳转功能 #192

Open
2 tasks done
AsanoSaki opened this issue Nov 20, 2023 · 3 comments
Open
2 tasks done

新功能建议: 目录中的一级标题跳转功能 #192

AsanoSaki opened this issue Nov 20, 2023 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@AsanoSaki
Copy link

AsanoSaki commented Nov 20, 2023

报告前须知

  • 我已确认该功能确实不存在
  • 我会认真详细地描述清楚我想要的功能

您的新功能建议是由使用时出现的不便引发的吗?

阅读文章时点击目录中的一级标题(例如 # 一、XXX)无法跳转。控制台输出:错误: TOC 小标题链接无效,格式无限

请描述您所设想的功能或是解决方案

一级标题的跳转更加方便。

补充内容

No response

@AsanoSaki AsanoSaki added the enhancement New feature or request label Nov 20, 2023
@ArcticLampyrid
Copy link
Collaborator

推荐的做法是:总使用二级标题

文章本身的 title 算一级标题

@Candinya
Copy link
Owner

Candinya commented May 23, 2024

是个一直存在的 bug #98 (包括直到现在默认环境下生成出来的内容也是失效的),虽然一般会推荐不要在文章里放 h1 ,但毕竟会影响体验,我看看有什么能做的(弄错了,不是同一回事)

@Candinya Candinya added this to the v3 milestone May 23, 2024
@Candinya
Copy link
Owner

可以确认一下您使用的渲染引擎是 hexo-renderer-marked 还是 hexo-renderer-markdown-it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants
@ArcticLampyrid @Candinya @AsanoSaki and others