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
Is your feature request related to a problem? Please describe.
VitePress by default contains a couple of plugins in addition to vanilla Markdown rendering. However, some plugins might introduce unexpected features when compared to rendering Markdown without the transformation. This adds complexity to theme writers who don't want to support such features.
For example, the preWrapperPlugin wraps the Markdown code block with an additional level of buttons and titles. It's probably fine for default theme, but for theme writers who do not want to support such features (for theme styling or whatever other reason), this gets into their ways, and they now have to additionally hide all the elements this plugin introduces.
Add an option, or some other ways, to disable built-in plugins, especially those that would introduce elements that create additional styling requirements compared to vanilla Markdown rendering results.
Describe alternatives you've considered
Theme creators can hide them using CSS or other methods. This is more of a hack than a proper solution.
Is your feature request related to a problem? Please describe.
VitePress by default contains a couple of plugins in addition to vanilla Markdown rendering. However, some plugins might introduce unexpected features when compared to rendering Markdown without the transformation. This adds complexity to theme writers who don't want to support such features.
For example, the
preWrapperPlugin
wraps the Markdown code block with an additional level of buttons and titles. It's probably fine for default theme, but for theme writers who do not want to support such features (for theme styling or whatever other reason), this gets into their ways, and they now have to additionally hide all the elements this plugin introduces.vitepress/src/node/markdown/markdown.ts
Line 238 in 060971d
vitepress/src/node/markdown/plugins/preWrapper.ts
Lines 22 to 28 in 060971d
Describe the solution you'd like
Add an option, or some other ways, to disable built-in plugins, especially those that would introduce elements that create additional styling requirements compared to vanilla Markdown rendering results.
Describe alternatives you've considered
Theme creators can hide them using CSS or other methods. This is more of a hack than a proper solution.
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: