-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Is it possible to programatically render the same markdown as <<<
from a Vue component?
#735
Comments
<<<
from a Vue component?
So I figured I can use I tried importing from
I guess this is not the right approach... |
i trying to find the solution too here... i do the same here with look at bot for code. i call it as component in the readme.md updated: i had to modify in prism js code for data-manual to be true to not auto execute his code if imported now i just use prism when click that has the impact to not override over element already parsed. But still code in one line no multilines
|
@davestewart your bug is normal because u trying to use a process.env that is node relevant and no client side so yeah not possible |
It seems that you want to highlight the code generated by your raw-loader query. but it's a good idea in VuePress - since our direction is to build everything at build time as much as possible. I suggest that you write a VuePress for your request of highlight code at runtime as #676, or waiting for our new code snippet API (#1336) |
I ask as I'm loading in a file raw from a component in a theme...
...but I want to just use the VuePress Markdown setup, which looks great.
Unfortunately, my attempt looks like the top half below.
How do I make it look like the result of
<<< path/to/file.vue
(the bottom half, below)?The text was updated successfully, but these errors were encountered: