-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
emoji in Rmarkdown #171
Comments
No, not to my knowledge. However, if you are okay with Blackfriday's Markdown, you will be able to render R Markdown to Markdown instead of HTML after I implement #165. Then emoji will work. |
#165 has been implemented. Please see the documentation about |
Just for clarification, does this mean that emojis can't be rendered in either .Rmd or .Rmarkdown files if the output is like this?
And the workaround is to render the output like this
Or to write in a .md document instead of .Rmd or .Rmarkdown? |
@ProQuestionAsker The life cycles of .Rmd vs .Rmarkdown:
Emoji is a Markdown extension only in Blackfriday. Pandoc does not support it. As a result, you must use .Rmarkdown if you must have emojis. For TOC in .Rmarkdown, you have to use the Hugo variable This won't work in blogdown: output:
md_document:
toc:true blogdown only supports the output format |
Ah, that makes sense. Thank you!! |
@yihui: Is there a way to extend the generation pipeline so that I can process the generated HTML and enable emojis? It is such a shame that we cannot use Hugo features with |
@andry-tino I may be missing what you are asking for, but you can put emojis in The code would look something like |
If I put this in
config.toml
:An emoji like
:smile:
in a markdown file will be rendered as 😄 in the HTML output. Is there anything I can put in_output.yml
to get emoji to work in an Rmarkdown file, e.g. something like this:Thanks!
The text was updated successfully, but these errors were encountered: