Skip to content
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

Request: Render $page.excerpt markdown #458

Closed
mirisuzanne opened this issue May 16, 2018 · 10 comments
Closed

Request: Render $page.excerpt markdown #458

mirisuzanne opened this issue May 16, 2018 · 10 comments
Labels
type: feature request Request to add a new feature

Comments

@mirisuzanne
Copy link

Currently $page.excerpt is rendered as plain text, without markdown parsing.

@mirisuzanne
Copy link
Author

I see now that there are two old (closed) issues asking the same question.

One thread suggests that <div v-html="$page.excerpt"></div> will give the rendered output, but I see exactly the same results with that and <div>{{ $page.excerpt }}</div> — in both cases, the output is plain text.

@stickmy
Copy link
Contributor

stickmy commented May 16, 2018

I have the same case, but @ulivz render <div v-html="$page.excerpt"></div> as html, I don't know what happened

@mirisuzanne
Copy link
Author

It would also be useful to markdown-render $page.title

@ulivz
Copy link
Member

ulivz commented May 16, 2018

So, why not providing a reproduction repo?

@mirisuzanne
Copy link
Author

@ulivz
Copy link
Member

ulivz commented May 17, 2018

Thanks, I reproduced it!

@ulivz ulivz closed this as completed in 9510b9f May 17, 2018
@ulivz
Copy link
Member

ulivz commented May 17, 2018

Support rendering $page.excerpt to HTML at 9510b9f

For the title render, are you referring to the title displayed on the home page, or the title at the top of each page?

(there is a abandoned PR of custom internal homepage: #304, not sure if it's useful)

@ulivz ulivz added type: feature request Request to add a new feature and removed no reproduction repo labels May 17, 2018
@mirisuzanne
Copy link
Author

@ulivz I was referring to $page.title, as demonstrated in the sample repo: https://github.com/mirisuzanne/vuepress_markdown_demo/blob/master/.vuepress/theme/Layout.vue#L13

@mirisuzanne
Copy link
Author

Should this be re-opened?

@ulivz
Copy link
Member

ulivz commented May 17, 2018

@MartinMuzatko Since this issue is for excerpt, so it would be better to open another issue, and describe for the title issue you mentioned above. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request Request to add a new feature
Projects
None yet
Development

No branches or pull requests

3 participants