I'd like to know if there is a way to use markdown syntax for adding emoji in xaringan
presentation. A minimal example would be
---
# Slide #1 :smile:
---
that would produce
Thanks!
Since xaringan is an html5 page, you can insert an emoji in it like any other webpage. Multiple ways to do so:
Insert emoji directly: copy & paste the emoji 😄 into the rmd, knit your slides and it'll work.
Insert unicode emoji using HTML character escape:
☀
into your rmd file, which will be rendered as ☀ . The &#
and ;
are used to escape the unicode character.There's a package emo
by Hadley, which is designed to make it very easy to insert emoji into RMarkdown documents." so you can do
---
# Slide #1 `r emo::ji("smile")`
---
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With