Skip to content

Commit

Permalink
feat: support render $page.excerpt to HTML (close: #458)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed May 17, 2018
1 parent 881199a commit 9510b9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ async function resolveOptions (sourceDir) {
data.frontmatter = frontmatter.data
}
if (frontmatter.excerpt) {
data.excerpt = frontmatter.excerpt
const { html } = markdown.render(frontmatter.excerpt)
data.excerpt = html
}
return data
}))
Expand Down

0 comments on commit 9510b9f

Please sign in to comment.