mirror of
https://gitee.com/docsifyjs/docsify.git
synced 2024-12-01 11:39:41 +08:00
bump 1.10.0
This commit is contained in:
parent
ccdc3c855a
commit
46967e73bf
@ -1,3 +1,7 @@
|
|||||||
|
## 1.10.0
|
||||||
|
### Features
|
||||||
|
- Support emoji :laughing:
|
||||||
|
|
||||||
## 1.9.0
|
## 1.9.0
|
||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
![logo](_media/icon.svg)
|
![logo](_media/icon.svg)
|
||||||
|
|
||||||
# docsify <small>1.9.0</small>
|
# docsify <small>1.10.0</small>
|
||||||
|
|
||||||
> A magical documentation site generator.
|
> A magical documentation site generator.
|
||||||
|
|
||||||
|
@ -2528,6 +2528,10 @@ function init (options) {
|
|||||||
return ("<p>" + text + "</p>")
|
return ("<p>" + text + "</p>")
|
||||||
};
|
};
|
||||||
|
|
||||||
|
renderer.text = function (text) {
|
||||||
|
return text.replace(/:(\S*?):/ig, '<img class="emoji" src="https://assets-cdn.github.com/images/icons/emoji/$1.png" alt="$1" />')
|
||||||
|
};
|
||||||
|
|
||||||
if (typeof OPTIONS$1.markdown === 'function') {
|
if (typeof OPTIONS$1.markdown === 'function') {
|
||||||
markdown.setOptions({ renderer: renderer });
|
markdown.setOptions({ renderer: renderer });
|
||||||
markdown = OPTIONS$1.markdown.call(this, markdown);
|
markdown = OPTIONS$1.markdown.call(this, markdown);
|
||||||
|
4
lib/docsify.min.js
vendored
4
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
Loading…
Reference in New Issue
Block a user