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

Make table of content accessible #324

Open
Xxcool opened this issue Sep 1, 2023 · 1 comment
Open

Make table of content accessible #324

Xxcool opened this issue Sep 1, 2023 · 1 comment

Comments

@Xxcool
Copy link

Xxcool commented Sep 1, 2023

查过资料之前版本提供过getProcessor这个方法,现在已经没有这个api了

@promise96319
Copy link

可以参考下源码里的 toc 实现,通过插件在 rehype 阶段可以拿到所有的 h 标签。

@pd4d10 pd4d10 changed the title 使用Viewer时候,有没有方法获取到目录呢? Make table of content accessible Oct 5, 2023
This was referenced Oct 5, 2023
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

No branches or pull requests

2 participants