Skip to content

Commit

Permalink
[build] 4.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Nov 1, 2018
1 parent 1a945d4 commit f84242d
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 23 deletions.
2 changes: 1 addition & 1 deletion docs/_coverpage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![logo](_media/icon.svg)

# docsify <small>4.8.3</small>
# docsify <small>4.8.4</small>

> A magical documentation site generator.
Expand Down
17 changes: 2 additions & 15 deletions lib/docsify.js
Original file line number Diff line number Diff line change
Expand Up @@ -3595,8 +3595,6 @@ Compiler.prototype._initRenderer = function _initRenderer () {
result = helper('tip', text);
} else if (/^\?&gt;/.test(text)) {
result = helper('warn', text);
} else if (/^</.test(text)) {
return text
} else {
result = "<p>" + text + "</p>";
}
Expand Down Expand Up @@ -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') {
Expand All @@ -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();
};
Expand Down Expand Up @@ -5060,7 +5047,7 @@ initGlobalAPI();
/**
* Version
*/
Docsify.version = '4.8.3';
Docsify.version = '4.8.4';

/**
* Run Docsify
Expand Down
2 changes: 1 addition & 1 deletion lib/docsify.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/themes/buble.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/themes/dark.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/themes/pure.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/themes/vue.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/docsify-server-renderer/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/docsify-server-renderer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docsify-server-renderer",
"version": "4.8.3",
"version": "4.8.4",
"description": "docsify server renderer",
"author": {
"name": "qingwei-li",
Expand Down

0 comments on commit f84242d

Please sign in to comment.