Skip to content

Commit

Permalink
Render native emoji with image fallback
Browse files Browse the repository at this point in the history
Fix #779
  • Loading branch information
jhildenbiddle committed Feb 4, 2022
1 parent 8aee074 commit 936d566
Show file tree
Hide file tree
Showing 3 changed files with 1,905 additions and 12 deletions.
1 change: 1 addition & 0 deletions src/core/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default function (vm) {
nameLink: window.location.pathname,
autoHeader: false,
executeScript: null,
nativeEmoji: true,
noEmoji: false,
ga: '',
ext: '.md',
Expand Down
2 changes: 1 addition & 1 deletion src/core/render/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class Compiler {
html = compile.parser(text);
}

html = config.noEmoji ? html : emojify(html);
html = config.noEmoji ? html : emojify(html, config.nativeEmoji);
slugify.clear();

return html;
Expand Down
Loading

0 comments on commit 936d566

Please sign in to comment.