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

求支持 docusaurus 配置 beforeDefaultRemarkPlugins #588

Open
vL1n opened this issue Aug 24, 2023 · 1 comment
Open

求支持 docusaurus 配置 beforeDefaultRemarkPlugins #588

vL1n opened this issue Aug 24, 2023 · 1 comment

Comments

@vL1n
Copy link

vL1n commented Aug 24, 2023

Docusaurus 的默认插件会在自定义备注插件之前运行,这意味着图片或链接已经通过 require() 调用转换为 JSX。例如,在上面的示例中,即使现在所有 h2 标题的前缀都是 Section X.,生成的目录仍然是一样的,因为 TOC 生成插件是在我们的自定义插件之前调用的。如果您需要在默认插件之前处理 MDAST,请使用 beforeDefaultRemarkPlugins 和 beforeDefaultRehypePlugins。

docusaurus相关文档地址

需要添加的代码位置

@luhc228
Copy link
Member

luhc228 commented Oct 8, 2023

PR welcomes

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