Skip to content

Use Noto Emoji font instead of markdown-it-emoji and twemoji #315

Answered by yhatt
mil-ad asked this question in Q&A
Discussion options

You must be logged in to vote

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

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 s…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mil-ad
Comment options

@remino
Comment options

Answer selected by mil-ad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants