phibr0 / obsidian-emoji-shortcodes

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

1.0.0: Seems emojis with underscore don’t work #2

Closed Moonbase59 closed 3 years ago

Moonbase59 commented 3 years ago

(EDIT: See below) I like the immediate replace against a Unicode char, even in edit mode. Another useful one, thanks!

For some reason, emojis using an underscore in their name don’t work, try:

:purple_heart:
:broken_heart:

😀
:woman_bowing:

Maybe CM hits in, thinking an italicized word is coming?

I’ll still have to try in a naked vault, results in a moment.

EDIT: It’s the same in a new vault, with no other community plugins installed. Using Obsidian 0.12.12, installer 0.12.10, on Linux (AppImage).

phibr0 commented 3 years ago

The Plugin doesn't immediately change the Short code to Unicode. That has to some Feature of another Program/your Distro.

The Plugin is literally just a MarkdownPostProcessor.

phibr0 commented 3 years ago

Do the Emojis with underscores show correctly in Preview Mode?

Moonbase59 commented 3 years ago

As just talked about in Discord, it was my fault: I had the Espanso text expander running, and the emoji pack is installed. Sorry for that confusion!

Still, having switched off Espanso now, in the preview those with underscores don’t get replaced:

Auswahl_183

Source:

:purple_heart:
:broken_heart:

😀
:woman_bowing:

:woman_bowing:

:smile:
:smile:
phibr0 commented 3 years ago

Hm thats weird. I can't reproduce this as they work for me.

image

image

Or with your Code:

:purple_heart:
:broken_heart:

😀
:woman_bowing:

:woman_bowing:

:smile:
:smile:

image

Moonbase59 commented 3 years ago

I don’t know what’s happening here. Yesterday it didn’t work, to day it does (sort of).

Maybe some interfering plugin updated or whatever. Frustrated today. Let’s just close this issue.

Today’s result:

Laptop, fresh vault:

Auswahl_184

Laptop, my vault:

Auswahl_185

(Strict line ends set differently, so ok)

Desktop:

Auswahl_119