Skip to content

Commit 936d566

Browse files
committed
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

+1
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

+1-1
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;

0 commit comments

Comments
 (0)