oliveryh / obsidian-emoji-toolbar

An Obsidian plugin to quickly add emojis into your notes
BSD 3-Clause "New" or "Revised" License
202 stars 11 forks source link

Emoji disappears when in backtick quotes inside of a js code block #31

Closed stecydube closed 2 years ago

stecydube commented 2 years ago

The following renders correctly in edit mode but loses the emojis when in reading mode if the plugin is active. Renders correctly if the plugin is inactive.

Edit mode

```javascript
// in vault at scripts/coolString.js
class CoolString {
    coolify(s) {
        return `😎 ${s} 😎`
    }
}


# Reading mode

![image](https://user-images.githubusercontent.com/5737502/154770379-6f6ab4e2-2171-43bd-b071-020ebebb2cf9.png)
oliveryh commented 2 years ago

Hi @stecydube. Thank you for your bug report. I’ll investigate this when I next get the chance, but in the meantime you can turn off twitter emoji in the Emoji Toolbar settings page which I believe should fix this issue.

stecydube commented 2 years ago

Ah! that works. Thank you!