You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with the current implementation the plugin-frontmatter only works if the render function is called.
there is a case (async plugin actions needed) where the official suggestion is to do the two steps of md.parse( and md.renderer.render( manually.
in this case this plugin does not work anymore.
the fix for this is very simple -
do the frontmatter extraction before the parse step.
i will add a PR
i discovered this issue while adding support for async actions to unplugin-vue-markdown
as it depends on plugin-frontmatter. unplugin/unplugin-vue-markdown#63
Description
with the current implementation the
plugin-frontmatter
only works if therender
function is called.there is a case (async plugin actions needed) where the official suggestion is to do the two steps of
md.parse(
andmd.renderer.render(
manually.in this case this plugin does not work anymore.
the fix for this is very simple -
do the frontmatter extraction before the parse step.
i will add a PR
i discovered this issue while adding support for async actions to
unplugin-vue-markdown
as it depends on
plugin-frontmatter
.unplugin/unplugin-vue-markdown#63
Reproduction
https://github.com/s-light/unplugin-vue-markdown-playground
Used Package Manager
pnpm
System Info
The text was updated successfully, but these errors were encountered: