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

用了该插件后,typora标题的序号不正常了 #147

Closed
Dabai2007 opened this issue Sep 7, 2023 · 6 comments
Closed

用了该插件后,typora标题的序号不正常了 #147

Dabai2007 opened this issue Sep 7, 2023 · 6 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@Dabai2007
Copy link

一级标题不会自增序号,全部是1
image

排序编号是从二级标题开始,按照原来,二级标题的格式是 1.1 1.2 1.3......这样。现在是从二级标题开始编排的,如下图
image

然后到三级标题,就是接着有问题的二级标题来的,三级标题第一个标题编号是 1.1(正确的应该是1.1.1)
image

不知道是哪里的问题,麻烦大佬帮看看

@Dabai2007
Copy link
Author

而且还不能正常跳转到本文档外的锚定内容,点击超链接后,能打开要跳转内容所在的文档,也会到锚定位置,但几毫秒的时间就又会自动回到文档顶部。不知道是不是BUG,也麻烦大神看看

@obgnail
Copy link
Owner

obgnail commented Sep 7, 2023

第一个问题我在 readme 里有说:

市面上常用的 Markdown lint微软 Markdown 最佳实践markdown 规范 MD025 号规则,都指明:一篇文档应该 有且仅有一个 h1,甚至很多人提倡不使用 h1: Avoid h1 headings。故此插件从 h2 开始编号。

第二个问题,我没用过 markdown 的锚点,我明天学习下怎么用,再去兼容这个情况。

@obgnail
Copy link
Owner

obgnail commented Sep 7, 2023

@Dabai2007 第二个问题,麻烦能给个使用描点的示例么?

@obgnail obgnail added bug Something isn't working documentation Improvements or additions to documentation labels Sep 8, 2023
@obgnail
Copy link
Owner

obgnail commented Sep 9, 2023

@Dabai2007

跨文件锚点问题解决了,麻烦更新验证一下。

@Dabai2007
Copy link
Author

谢谢UP主,太牛了

@obgnail
Copy link
Owner

obgnail commented Sep 14, 2023

暂时关闭,如有其他问题,麻烦另提 issue

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

No branches or pull requests

2 participants