vuepress / core

Vue-Powered Static Site Generator
https://vuepress.vuejs.org
MIT License
2.29k stars 926 forks source link

[Feature request] renderPageContent 中 添加一个新的hook beforeRenderPageContent #1481

Closed zenonux closed 8 months ago

zenonux commented 8 months ago

Clear and concise description of the problem

希望在读取md文件后,对md文件本身做一些处理之后,再丢给markdown-it去解析

Suggested solution

function beforeRenderPageContent(content: string) {
  return content;
}

Alternative

No response

Additional context

No response

Mister-Hope commented 8 months ago

一个markdown-it插件可以做到