-
Is there a way to disable markdown-it-emoji and twemoji and instead use Google's Noto Color Emoji font? I can add a new class like below but I want to use Noto everywhere without having to use classes. .custom_emoji {
font-family: "Noto Color Emoji"
} I actually thought markdown-it-emoji plugin only deals with converting |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Marp Core tries to convert any Unicode emoji characters to Twemoji, including a raw emoji character 😄 and We have allowed to disable aggressive emoji conversion to Twemoji by setting the constructor option const marp = new Marp({
emoji: {
shortcode: true, // Turn `:smile:` syntax into Unicode emoji instead of Twemoji
unicode: false, // Disable agressive converting to Twemoji in Unicode emoji
}
}) If you are using Marp CLI, Marp Core constructor option can set via the # .marprc.yml
options:
emoji:
shortcode: true
unicode: false
In Markdown, tweak the style for preferring the emoji font than other fonts specified by the theme.[^2] @import url(https://fonts.googleapis.com/css2?family=Noto+Color+Emoji);
/* for default theme */
section {
font-family: "Noto Color Emoji",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
}
/* for gaia theme */
section {
font-family: "Noto Color Emoji", Lato, 'Avenir Next', Avenir, 'Trebuchet MS', 'Segoe UI', sans-serif;
}
/* for uncover theme */
section {
font-family: "Noto Color Emoji", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
} Original definition of font-family is here
And now, you can use Noto Color Emoji in anywhere. 😄 Footnotes |
Beta Was this translation helpful? Give feedback.
Marp Core tries to convert any Unicode emoji characters to Twemoji, including a raw emoji character 😄 and
:smile:
shorthand. Early Chrome had been less reliable in PDF emoji rendering1, so we had to adopt aggressive conversion into a unified SVG representation of emoji.We have allowed to disable aggressive emoji conversion to Twemoji by setting the constructor option
emoji
.https://github.com/marp-team/marp-core#emoji-object
If you are using Marp CLI, Marp Core constructor option can s…