Skip to content

Commit 1a09ce3

Browse files
authored
Fix: emoji +1 and -1 not rendering (docsifyjs#1187)
1 parent 415f295 commit 1a09ce3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/render/emojify.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ function replace(m, $1) {
1212

1313
export function emojify(text) {
1414
return text
15+
.replace(/:\+1:/g, ':thumbsup:')
16+
.replace(/:-1:/g, ':thumbsdown:')
1517
.replace(/<(pre|template|code)[^>]*?>[\s\S]+?<\/(pre|template|code)>/g, m =>
1618
m.replace(/:/g, '__colon__')
1719
)

0 commit comments

Comments
 (0)