Skip to content
Permalink
Browse files

fix($core): throw error since "prettify" doesn't check null (close: #1)

  • Loading branch information...
ulivz committed Feb 11, 2019
1 parent e6d6ed8 commit 11102743b25a65e53cfa052cb580754a897bab35
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/index.js
@@ -123,9 +123,9 @@ module.exports = (opts, ctx) => {
postContent = `# ${title}\n > 此文档尚未创建`
} else {
if (useMarkdown || data.format === 'markdown') {
postContent = data.body
postContent = data.body || ''
} else {
postContent = prettify(data.body_html)
postContent = prettify(data.body_html || '')
}
}

0 comments on commit 1110274

Please sign in to comment.
You can’t perform that action at this time.