Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 936d566

Browse files
committedFeb 4, 2022
Render native emoji with image fallback
Fix #779
1 parent 8aee074 commit 936d566

File tree

3 files changed

+1905
-12
lines changed

3 files changed

+1905
-12
lines changed
 

‎src/core/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export default function (vm) {
2121
nameLink: window.location.pathname,
2222
autoHeader: false,
2323
executeScript: null,
24+
nativeEmoji: true,
2425
noEmoji: false,
2526
ga: '',
2627
ext: '.md',

‎src/core/render/compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class Compiler {
104104
html = compile.parser(text);
105105
}
106106

107-
html = config.noEmoji ? html : emojify(html);
107+
html = config.noEmoji ? html : emojify(html, config.nativeEmoji);
108108
slugify.clear();
109109

110110
return html;

‎src/core/render/emojify.js

Lines changed: 1903 additions & 11 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.