diff --git a/docs/_coverpage.md b/docs/_coverpage.md index 75264ef..0aef7b7 100644 --- a/docs/_coverpage.md +++ b/docs/_coverpage.md @@ -1,6 +1,6 @@ ![logo](_media/icon.svg) -# docsify 4.7.0 +# docsify 4.7.1 > A magical documentation site generator. diff --git a/lib/docsify.js b/lib/docsify.js index 98f3a50..e7ba871 100644 --- a/lib/docsify.js +++ b/lib/docsify.js @@ -384,20 +384,19 @@ function cover() { * @return {String} */ function tree(toc, tpl) { - if ( tpl === void 0 ) tpl = ''; + if ( tpl === void 0 ) tpl = ''; if (!toc || !toc.length) { return '' } - + var innerHTML = ''; toc.forEach(function (node) { - tpl += "
  • " + (node.title) + "
  • "; + innerHTML += "
  • " + (node.title) + "
  • "; if (node.children) { - tpl += "
  • "; + innerHTML += tree(node.children, tpl); } }); - - return tpl + return tpl.replace('{inner}', innerHTML) } function helper(className, content) { @@ -610,7 +609,7 @@ var marked = createCommonjsModule(function (module, exports) { /** * marked - a markdown parser * Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed) - * https://github.com/markedjs/marked + * https://github.com/chjj/marked */ (function() { @@ -1866,7 +1865,7 @@ function marked(src, opt, callback) { if (opt) { opt = merge({}, marked.defaults, opt); } return Parser.parse(Lexer.lex(src, opt), opt); } catch (e) { - e.message += '\nPlease report this to https://github.com/markedjs/marked.'; + e.message += '\nPlease report this to https://github.com/chjj/marked.'; if ((opt || marked.defaults).silent) { return '

    An error occurred:

    '
             + escape(e.message + '', true)
    @@ -3222,7 +3221,7 @@ Compiler.prototype.sidebar = function sidebar (text, level) {
         html = this.compile(text);
       } else {
         var tree$$1 = this.cacheTree[currentPath] || genTree(this.toc, level);
    -    html = tree(tree$$1, '