Skip to content

Commit

Permalink
[build] 4.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Nov 9, 2017
1 parent d486eef commit 9d6595d
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 9 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.5.1</small>
# docsify <small>4.5.2</small>

> A magical documentation site generator.
Expand Down
11 changes: 10 additions & 1 deletion lib/docsify.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -4054,7 +4063,7 @@ initGlobalAPI();
/**
* Version
*/
Docsify.version = '4.5.1';
Docsify.version = '4.5.2';

/**
* 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.5.1",
"version": "4.5.2",
"description": "docsify server renderer",
"author": {
"name": "qingwei-li",
Expand Down

0 comments on commit 9d6595d

Please sign in to comment.