[build] 4.5.2

This commit is contained in:
qingwei.li 2017-11-09 13:06:57 +08:00
commit 9d6595d04b
9 changed files with 18 additions and 9 deletions

View file

@ -2976,6 +2976,15 @@ Compiler.prototype._initRenderer = function _initRenderer () {
return ("<img src=\"" + url + "\"data-origin=\"" + href + "\" alt=\"" + text + "\"" + attrs + ">")
};
var CHECKED_RE = /^\[([ x])\] +/;
origin.listitem = renderer.listitem = function (text) {
var checked = CHECKED_RE.exec(text);
if (checked) {
text = text.replace(CHECKED_RE, ("<input type=\"checkbox\" " + (checked[1] === 'x' ? 'checked' : '') + " />"));
}
return ("<li>" + text + "</li>\n")
};
renderer.origin = origin;
return renderer
@ -4054,7 +4063,7 @@ initGlobalAPI();
/**
* Version
*/
Docsify.version = '4.5.1';
Docsify.version = '4.5.2';
/**
* Run Docsify

2
lib/docsify.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long