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
have a way to hook in to code fences, with a live meta tag, and have them render.
I've done some thinking over here: NullVoxPopuli/limber#1632,
the return value could be a VueComponent, since VitePress is in Vue .. but i guess.. is there any Vue left over at run time?
maybe a script tag is the only way to move forward :think
Describe alternatives you've considered
I use existing behavior with script tag
except, I probably need to figure out how to get a compiler and a whole mess of dependencies into the build as well hmm
I write a competitor to VitePress, (wish me luck lol (and a time machine))
Write a markdown-it plugin (add it via markdown.config) and return a vue component from it. Let me know if you need help regarding the mdit part (it'll be ~5 line code IG).
Is your feature request related to a problem? Please describe.
Vitepress offers a lot, but it doesn't allow any live demo support from the markdown.
For example, in my own experiments, I use the
live
tag to denote something should be rendered:Closest thing I've seen is https://vitepress.dev/reference/default-theme-search#custom-content-renderer
but that would require emitting a script tag in the HTML -- which... is maybe the best we can do with SSG?
Describe the solution you'd like
have a way to hook in to code fences, with a
live
meta tag, and have them render.I've done some thinking over here: NullVoxPopuli/limber#1632,
the return value could be a VueComponent, since VitePress is in Vue .. but i guess.. is there any Vue left over at run time?
maybe a script tag is the only way to move forward :think
Describe alternatives you've considered
Additional context
thanks! vitepress is great!
Validations
The text was updated successfully, but these errors were encountered: