content loader function, with our Lazy loading blurred thumbnails | Nólëbase Integrationsmarkdown-it plugin where env.path and env.relativePath are required, since users are not allowed to toggle these unsupported markdown-it plugins for content loaders, they will not be able to use content loaders with markdown-it-unlazy-img together.
I found the code here, for content loaderss, within the render function, env properties are not injected as what VitePress's render would do:
Summary
For general VitePress page renders, properties of
env
are available formarkdown-it
plugins to peek file path related info:https://github.com/vuejs/vitepress/blob/36e0c1a3dbd3e5259fe08a480cc0ca3a1d48ba9b/src/node/markdownToVue.ts#L113-L122
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:https://github.com/vuejs/vitepress/blob/36e0c1a3dbd3e5259fe08a480cc0ca3a1d48ba9b/src/node/contentLoader.ts#L147
Proposal
env
propertiesmd.use