[build] 4.8.6

This commit is contained in:
Qingwei Li 2018-11-12 10:24:21 +08:00
commit a07a613312
7 changed files with 8 additions and 8 deletions

View file

@ -3571,7 +3571,7 @@ Compiler.prototype._initRenderer = function _initRenderer () {
}
href = router.toURL(href, null, router.getCurrentPath());
} else {
attrs += href.startsWith('mailto:') ? '' : (" target=\"" + linkTarget + "\"");
attrs += href.indexOf('mailto:') === 0 ? '' : (" target=\"" + linkTarget + "\"");
}
if (config.target) {
@ -5013,7 +5013,7 @@ function initGlobalAPI () {
dom: dom,
get: get,
slugify: slugify,
version: '4.8.5'
version: '4.8.6'
};
window.DocsifyCompiler = Compiler;
window.marked = marked;

2
lib/docsify.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -17,7 +17,7 @@ function escapeHtml(string) {
function getAllPaths(router) {
var paths = [];
document.querySelectorAll('.sidebar-nav a:not(.section-link):not([data-nosearch])').forEach(function (node) {
Docsify.dom.findAll('.sidebar-nav a:not(.section-link):not([data-nosearch])').forEach(function (node) {
var href = node.href;
var originHref = node.getAttribute('href');
var path = router.parse(href).path;

File diff suppressed because one or more lines are too long