mirror of
https://github.com/zhigang1992/docsify.git
synced 2026-04-27 00:15:17 +08:00
bump: 3.4.2
This commit is contained in:
@@ -75,6 +75,7 @@ var config = merge({
|
||||
nameLink: window.location.pathname,
|
||||
autoHeader: false,
|
||||
executeScript: null,
|
||||
noEmoji: false,
|
||||
ga: ''
|
||||
}, window.$docsify);
|
||||
|
||||
@@ -2938,7 +2939,7 @@ function replace (m, $1) {
|
||||
}
|
||||
|
||||
function emojify (text) {
|
||||
return text
|
||||
return $docsify.noEmoji ? text : text
|
||||
.replace(/<(pre|template|code)[^>]*?>[\s\S]+?<\/(pre|template|code)>/g, function (m) { return m.replace(/:/g, '__colon__'); })
|
||||
.replace(/:(\w+?):/ig, window.emojify || replace)
|
||||
.replace(/__colon__/g, ':')
|
||||
|
||||
Reference in New Issue
Block a user