[build] 4.8.4

This commit is contained in:
qingwei.li 2018-11-02 02:17:36 +08:00
commit f84242d380
9 changed files with 10 additions and 23 deletions

View file

@ -3595,8 +3595,6 @@ Compiler.prototype._initRenderer = function _initRenderer () {
result = helper('tip', text);
} else if (/^\?>/.test(text)) {
result = helper('warn', text);
} else if (/^</.test(text)) {
return text
} else {
result = "<p>" + text + "</p>";
}
@ -4320,7 +4318,7 @@ function renderMixin(proto) {
var m = html
.trim()
.match('<img.*?data-origin="(.*?)"[^a]+alt="(.*?)">([^<]*?)$');
.match('<p><img.*?data-origin="(.*?)"[^a]+alt="(.*?)">([^<]*?)</p>$');
if (m) {
if (m[2] === 'color') {
@ -4339,17 +4337,6 @@ function renderMixin(proto) {
html = html.replace(m[0], '');
}
// XXX: A Workaround
html = html
.split('\n')
.map(function (part) {
if (/^<a/.test(part)) {
return part.replace('<a', '<a data-button')
}
return part
})
.join('\n');
this._renderTo('.cover-main', html);
sticky();
};
@ -5060,7 +5047,7 @@ initGlobalAPI();
/**
* Version
*/
Docsify.version = '4.8.3';
Docsify.version = '4.8.4';
/**
* 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