fix(render): custom marked renderer
This commit is contained in:
parent
64bb5befeb
commit
bf559b44dc
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue