-
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
How can I render the $page. excerpt to html #446
Comments
Could you provide reproduced repo? |
@ulivz Then, I try to import vuepress's So how can I render the $page.excerpt to html : ) |
I don't know why you need to import the If you want to render In your markdown: I am excerpt
<!-- more -->
I am content In your custom component: <div v-html="$page.excerpt"></div> |
@ulivz |
I confirm this behavior, I did not succeed to render the markdown. |
@Bloss why |
FYI: The markdown text in |
Unfortunately it is not the case, you can see here: Line 227 in 3727153
that the content of excerpt is not compiled to HTML. |
So what's your case? 😅 |
I just told you: that the content of excerpt is not compiled to HTML. |
@Bloss Sorry, I just made a wrong judgment, it's truly not compiled to HTML... |
Let's continue at #458 |
Surprisingly... |
@ulivz It's ok, Let's continue |
I try to add
@md: require('path').resolve('node_modules/vuepress/markdown')
in webpack config, then I can use the vuepress md.render to render $page. excerpt, but I failedThe text was updated successfully, but these errors were encountered: