Skip to content

Commit

Permalink
fix(render): custom marked renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Feb 13, 2017
1 parent 64bb5be commit bf559b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function init () {
if (typeof $docsify.markdown === 'function') {
markdown = $docsify.markdown.call(this, markdown, renderer)
} else {
if ($docsify.markdown.renderer) {
if ($docsify.markdown && $docsify.markdown.renderer) {
$docsify.markdown.renderer = merge(renderer, $docsify.markdown.renderer)
}
markdown.setOptions(merge({ renderer }, $docsify.markdown))
Expand Down

0 comments on commit bf559b4

Please sign in to comment.