Skip to content

Commit 9b858fc

Browse files
committed
bump: 3.4.2
1 parent 3aef37a commit 9b858fc

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11

2+
# 3.4.2 / 2017-03-11
3+
4+
* feat(emojify): add no-emoji option
5+
26
# 3.4.1 / 2017-03-10
37

48
* fix(dom): Disable the dom cache when vue is present, fixed [#119](https://github.com/QingWei-Li/docsify/issues/119)

lib/docsify.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ var config = merge({
7575
nameLink: window.location.pathname,
7676
autoHeader: false,
7777
executeScript: null,
78+
noEmoji: false,
7879
ga: ''
7980
}, window.$docsify);
8081

@@ -2938,7 +2939,7 @@ function replace (m, $1) {
29382939
}
29392940

29402941
function emojify (text) {
2941-
return text
2942+
return $docsify.noEmoji ? text : text
29422943
.replace(/<(pre|template|code)[^>]*?>[\s\S]+?<\/(pre|template|code)>/g, function (m) { return m.replace(/:/g, '__colon__'); })
29432944
.replace(/:(\w+?):/ig, window.emojify || replace)
29442945
.replace(/__colon__/g, ':')

0 commit comments

Comments
 (0)