improve: missing env
properties for Content Loader when render
is specified
#4349
Labels
bug
Something isn't working
Summary
For general VitePress page renders, properties of
env
are available formarkdown-it
plugins to peek file path related info:vitepress/src/node/markdownToVue.ts
Lines 113 to 122 in 36e0c1a
However, for content loader, if specified such
content loader function, with our Lazy loading blurred thumbnails | Nólëbase Integrations
markdown-it
plugin whereenv.path
andenv.relativePath
are required, since users are not allowed to toggle these unsupportedmarkdown-it
plugins for content loaders, they will not be able to use content loaders withmarkdown-it-unlazy-img
together.I found the code here, for content loaderss, within the
render
function,env
properties are not injected as what VitePress'srender
would do:vitepress/src/node/contentLoader.ts
Line 147 in 36e0c1a
Proposal
env
propertiesmd.use
The text was updated successfully, but these errors were encountered: