mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-08 21:37:02 +00:00
Emoji mappings - Exclude Emoji #372
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LukeTOBrien on GitHub (Jun 9, 2020).
Hello there,
I am creating an app and I want it to be safe for kids, I want to use Emoji but I need to exclude to middle finger Emoji.
So basicly I want to call the Emoji extension with a string array of Emoji to exclude.
Do you see what I mean and is this currently possible?
I notice that the extension has a public constructor that takes an
EmojiMapping:public EmojiExtension(EmojiMapping emojiMapping).Do you think I could somehow use that with code like:
I don't know why anyone on the Emoji standards commity would approve a middle finger emoji anyway,
I also wondered if you considered storing the default Emoji mapping in a embedded resourse like a JSON or YAML file?
I think it would be easier to maintain and in the future you might consider a more complex object rather than a
Dictionary<string, string>, like alternative shortnames or skin colour variations.@MihaZupan commented on GitHub (Jun 9, 2020):
You can create a custom EmojiMapping
@LukeTOBrien commented on GitHub (Jun 11, 2020):
Thank you very much 8-)