-
Notifications
You must be signed in to change notification settings - Fork 200
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
Support emojis in Markdown #565
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
I was looking for similar feature, but then realised an emoji is just a unicode character that you can add directrly to your source, without a shortcode: ⭐ You have to copy a character from somewhere, this can be a link above or https://github.com/ikatyang/emoji-cheat-sheet/blob/master/README.md |
I think it would be nicer to add support for the short codes. It's easier to know what's being displayed that way when reading the raw markdown, especially when reviewing the docs. e.g.
I know what " |
If support for adding 3rd-party/custom MarkdownIt plugins through |
Heya, is there a reason that you cannot just type emojis directly into the text? I have done this plenty in https://myst-parser.readthedocs.io/en/latest/ without issue |
On of the use cases is to include in the docs a generated |
but again, this page has a section on "Shortcode vs Unicode", and there is a lot more cons for using the shortcode 😅, plus unicode is supported on essentially every platform now
@adam-grant-hendry you don't need to use either of these, just directly use 🎉 It seems to me that shortcodes are a legacy syntax, from before unicode became a modern standard |
Well, there are still people working on a 🥔 that doesn't do emoji substitution in fonts 😆. |
Typing in the emojis directly works for me 👍 |
FYI, essentially the pathway to allowing this in myst-parser, would be to create a plugin in https://github.com/executablebooks/mdit-py-plugins, to essentially port https://github.com/markdown-it/markdown-it-emoji. Then we can add it in the list of |
One reason is that it can be tedious to have to open a web page/software/something where you know that such an emoji can be copied and pasted. For example, I opened Signal and typed |
FYI modern OSes have a direct way to input/search for Emoji.
This why I consider this feature to be more about supporting legacy hardware / software of the documentation's reader rather than usability of the writer 😉. |
Short codes, though non-standard, are easier to remember. E.g. |
Context
I tried to use emoji in Markdown, like referred here
https://tutorialmarkdown.com/emojis
But when exported to html or confluence, it does not work.
It does just reproduce the text, like this one - 😂
Proposal
it would be great if we could include them.
Tasks and updates
No response
The text was updated successfully, but these errors were encountered: