Skip to content
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

feature idea: named emoji like :wink: #183

Open
ec1oud opened this issue Sep 14, 2022 · 2 comments
Open

feature idea: named emoji like :wink: #183

ec1oud opened this issue Sep 14, 2022 · 2 comments

Comments

@ec1oud
Copy link
Contributor

ec1oud commented Sep 14, 2022

Here's a long list: https://www.webfx.com/tools/emoji-cheat-sheet/ (GitHub handles these: 🎸 )

One way would be for md4c to simply detect :word_sequence: syntax and give us a span like MD_SPAN_SYMBOL or so; the user of the library could do whatever is needed to translate those names to glyphs.

Another way is to actually make the Unicode substitutions inline with no span, as if the author had typed a Unicode symbol in the markdown file. But that would add some bloat (a table mapping names to Unicode codepoints) and also loses information: what name the markdown author was using between colons. To rewrite the same markdown, a reverse lookup would be necessary.

So I think I like the first way better: less bloat in md4c, and as extensible as the user wants.

@ec1oud ec1oud changed the title feature idea: named emoji like 😉 feature idea: named emoji like :wink: Sep 14, 2022
@cheungxiongwei
Copy link

This looks really cool, you can provide a list of emoji symbols here

@petko
Copy link

petko commented Feb 22, 2024

You can find a full list here:
https://api.github.com/emojis

Notice that each emoji contains both the emoji code and the Unicode codepoint in the URL.

For example:
grinning has value of https://github.githubassets.com/images/icons/emoji/unicode/1f600.png?v8, where 1f600 is the codepoint for the 😀 emoji.

P.S.: Some emojis are combinations of more than one emoji (for example :office_worker: 🧑‍💼 is 1f468-1f4bc ) and some are for countries (for example :bulgaria: 🇧🇬 is 1f1e7-1f1ec ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants