phibr0 / obsidian-emoji-shortcodes

Emoji Shortcodes - Obsidian Plugin | Adds Support for Emoji Shortcodes to Obsidian
MIT License
178 stars 15 forks source link

Missing modifier characters in YAML frontmatter #22

Closed nathonius closed 2 years ago

nathonius commented 2 years ago

Using :heavy_check_mark: in YAML frontmatter should render (U+2714, U+FE0F), but seems to only be rendering the first character. Using it anywhere in the normal editor renders it correctly. If adding the emoji using another method both characters are rendered, and it appears correctly as ✔️.

nathonius commented 2 years ago

This doesn't seem to be the case with all emoji made from multiple characters :person_curly_hair: 🧑‍🦱 seems be added correctly.

phibr0 commented 2 years ago

Might be that your Font doesn't show the Emoji Correctly. The Plugin shouldn't differentiate in what type of block it's in.

nathonius commented 2 years ago

I don't think it's a font thing:

Checkmark

phibr0 commented 2 years ago

Using it anywhere in the normal editor renders it correctly.

Are you sure? For me it will always be the black and white, singe character, Version

nathonius commented 2 years ago

However it seems to be an issue with obsidian - not your plugin. The same behavior happens when you copy and paste the emoji into the frontmatter. Feel free to close this.

nathonius commented 2 years ago

Using it anywhere in the normal editor renders it correctly.

Are you sure? For me it will always be the black and white, singe character, Version

Maybe it's a platform thing then? It definitely works in the editor for me. Tried with the default theme too.

phibr0 commented 2 years ago

You could try the new Editor in the latest Obsidian Version. It might fix some stuff.

I will close this for now.