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.
Currently when you render a code block through a snippet on Vitepress, you don't have a way to append custom attributes, such as twoslash
Describe the solution you'd like
Be able to append custom attributes such as twoslash so that twoslash can be used with snippets as well
Describe alternatives you've considered
I've considered doing a plugin that re-implements the built-in snippet plugin but with that capability, but it feels like this should belong to the built-in plugin.
Maybe it is already the case & I just didn't understand how to do it. I've seen from the docs that this works :
Is your feature request related to a problem? Please describe.
Currently when you render a code block through a snippet on Vitepress, you don't have a way to append custom attributes, such as twoslash
Describe the solution you'd like
Be able to append custom attributes such as twoslash so that twoslash can be used with snippets as well
Describe alternatives you've considered
I've considered doing a plugin that re-implements the built-in snippet plugin but with that capability, but it feels like this should belong to the built-in plugin.
Maybe it is already the case & I just didn't understand how to do it. I've seen from the docs that this works :
But somehow this does not work :
Additional context
Shiki twoslash :
https://shiki.style/packages/twoslash
Validations
The text was updated successfully, but these errors were encountered: