@mdit-vue/plugin-frontmatter is built on gray-matter, but wrap the frontmatter / excerpt parsing inside markdown-it rendering workflow, and extract the result to the env.
Also, that plugin supports rendering exerpt to html, but I currently disable it to be consistent with our current behavior.
If this PR is accepted, I think we can go one step further to replace grayMatterOptions with frontmatterOptions, which accepts options for @mdit-vue/plugin-frontmatter (breaking change). Then users could enbale renderExcerpt by themselves.
@mdit-vue/plugin-frontmatter
is built ongray-matter
, but wrap the frontmatter / excerpt parsing inside markdown-it rendering workflow, and extract the result to theenv
.Also, that plugin supports rendering exerpt to html, but I currently disable it to be consistent with our current behavior.
If this PR is accepted, I think we can go one step further to replace
grayMatterOptions
withfrontmatterOptions
, which accepts options for@mdit-vue/plugin-frontmatter
(breaking change). Then users could enbalerenderExcerpt
by themselves.