New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose __path and __relativePath options on md instance for md plugins #1258
Comments
They were not removed, they were moved to |
FYI:
vitepress/src/node/markdown/env.ts Lines 4 to 9 in 1e312f5
|
Just noticed that |
@meteorlxy I see |
See https://github.com/mdit-vue/mdit-vue/blob/main/packages/plugin-sfc/src/types.ts#L43-L76 |
I finally used const vueSrc = [
...injectPageDataCode(
sfcBlocks?.scripts.map((item) => item.content) ?? [],
pageData,
replaceRegex
),
`<template><div>${replaceConstants(
html,
replaceRegex,
vueTemplateBreaker
)}</div></template>`,
...(sfcBlocks?.styles.map((item) => item.content) ?? []),
...(sfcBlocks?.customBlocks.map((item) => item.content) ?? [])
].join('\n') |
Uh yes, I forgot that. |
Is your feature request related to a problem? Please describe.
I found that #1240 has removed these two parameters, which makes it impossible for me to customize the MD plugin on this basis
Describe the solution you'd like
Can you
__ Path
and__ Relativepath
these two attributes are added to the MD instance to better customize the MD pluginDescribe alternatives you've considered
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: