Skip to content

Commit ad16c21

Browse files
author
Leonid Buneev
committed
1 parent 89d13c3 commit ad16c21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const htmlToText = require('html-to-text')
44
module.exports = options => ({
55
extendPageData($page) {
66
try {
7-
const { html } = $page._context.markdown.render($page._strippedContent)
7+
const { html } = $page._context.markdown.render($page._strippedContent || '')
88

99
const plaintext = htmlToText.fromString(html, {
1010
wordwrap: null,

0 commit comments

Comments
 (0)