auto-emoji
This article is a stub. You can help the IndieWeb wiki by expanding it.
auto-emoji is creating or embedding emoji automatically from a text-based microsyntax, usually the text name of the emoji delimited by colon ':' characters, like :smile:
for π or custom names for custom emoji image embeds in some software and services, and some IndieWeb sites.
Shortcodes
- emoji shortcodes are their own microsyntax (see https://emojipedia.org/shortcodes)
IndieWeb Examples
- capjamesg has supported auto-emoji via emoji shortcodes since at least 2021-10-25
- using his code https://github.com/capjamesg/cinnamon/blob/main/static/js/editor.js#L319 and
- reference shortcode dictionary https://gist.github.com/rxaviers/7360908
Software Examples
- Mastodon supports displaying emoji shortcodes in posts automatically as emoji, as well as a dropdown suggesting emoji when you enter a ':' and at least one character of an emoji shortcode into the create post text input area
- also supports custom emoji: https://docs.joinmastodon.org/entities/CustomEmoji/
Service Examples
Most chat or forum related services support automatically converting emoji shortcodes to inline emoji as you are typing, often by providing a dropdown of suggested emoji after typing a ':' from which you can select an emoji, or keep typing and the dropdown is updated.
(needs screenshots of various services typing interface with dropdown of suggested emoji)
- Discord
- GitHub
- GitLab
- Slack
- also supports custom emoji: https://slack.com/help/articles/206870177-Add-custom-emoji-and-aliases-to-your-workspace
Brainstorming
microsyntax origins
Hypothesis: the colon delimiting syntax came from auto-converting emoticons which often start with a ':' (like : ) or : D or : P ) into emoji.
Misconceptions
Emoji shortcodes are not Markdown
emoji shortcodes are not part of Markdown (there is no mention of emoji in https://spec.commonmark.org/). They happen to be supported in many text-entry boxes, some of which also support Markdown (e.g. GitHub), and thus are mistakenly thought of as part of Markdown, or even part of GitHub Flavored Markdown, despite that spec also having no mention of emoji.
See Also
- emoji
- microsyntax
- implementation: emoji syntax plugin for markdown-it: https://github.com/markdown-it/markdown-it-emoji