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

emoji is displayed in <img> under obsidian editor "view" mode #5

Closed
ClaudiaSmily opened this issue Aug 23, 2021 · 5 comments
Closed

Comments

@ClaudiaSmily
Copy link

Hi there,

I try to use this awesome plugin and track my habbit. It works perfect creating the calendar view.
While when displaying the content in "View" mode, the "tag" (or emoji) i am using is wrapped in .

image
image

May i know is it related with the theme i am using or any other settings?

Thanks!

@duoani
Copy link
Owner

duoani commented Aug 24, 2021

No related theme is required.

For some security reasons (DOM injection attacks), habit tracker plugin does not translate your inputs into HTML tags. That's why the raw HTML <img draggable="false" ... appears.

You can try using the origin emoji rather than twitter one.

@ClaudiaSmily
Copy link
Author

No related theme is required.

For some security reasons (DOM injection attacks), habit tracker plugin does not translate your inputs into HTML tags. That's why the raw HTML <img draggable="false" ... appears.

You can try using the origin emoji rather than twitter one.

Oh, I disable "Emoji Toolbar" and everything works fine!
image

@duoani
Copy link
Owner

duoani commented Aug 26, 2021

Emoji Toolbar 很好,我也在用,不需要完全禁用它,只要禁用它的 Twitter Emoji 就好了

@ClaudiaSmily
Copy link
Author

Emoji Toolbar 很好,我也在用,不需要完全禁用它,只要禁用它的 Twitter Emoji 就好了

哇!管用!好评!

@duoani duoani closed this as completed Aug 27, 2021
@duoani
Copy link
Owner

duoani commented Sep 17, 2021

更新到 v1.0.4 后,同时开启本插件的 Enable HTML 配置项,就可以支持 Twitter Emoji 了。
@ClaudiaSmily

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

No branches or pull requests

2 participants