[Feature request] renderPageContent 中 添加一个新的hook beforeRenderPageContent #1482
-
Clear and concise description of the problem希望在读取md文件后,对md文件本身做一些处理之后,再丢给markdown-it去解析 Suggested solutionfunction beforeRenderPageContent(content: string) {
return content;
} AlternativeNo response Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Answered by
Mister-Hope
Feb 2, 2024
Replies: 1 comment 1 reply
-
一个markdown-it插件可以做到,可以参考 https://mdit-plugins.github.io/include.html 作为示例。 你可以在 normalize 前后添加 CoreRule 直接修改 markdown 文件内容。 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Mister-Hope
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
一个markdown-it插件可以做到,可以参考 https://mdit-plugins.github.io/include.html 作为示例。
你可以在 normalize 前后添加 CoreRule 直接修改 markdown 文件内容。