Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Can the issue be reproduced with the default theme (daylight/midnight)?
- I was able to reproduce the issue with the default theme
Could the issue be due to extensions?
- I've ruled out the possibility that the extension is causing the problem.
Describe the problem
Emoji not showing rightly:
- 😅 does not work normally, but works fine in inline code block
- ⚠ /
⚠
/⚠️ /⚠️
does not work in both regular form and in inline code block too
Expected result
The colorful form should be rendered
Screenshot or screen recording presentation
No response
Version environment
- Version: 2.9.8
- Operating System: Linux
Log file
-
More information
No response
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
88250 commentedon Aug 6, 2023
Hello, this depends on system fonts, please install fonts with Emoji and try again.
fenilgmehta commentedon Jan 1, 2024
Hi @88250, just got to know that this colorful emoji rendering is not much dependent on the system fonts. Instead it is more about the unicode character being inserted.
⚠
is the character which SiYuan's emoji picker inserts. But, if we seeSiYuan User Guide > Please Start Here > Custom Appearance > Theme
>INSIDE_FILE > Development > Encoding
⚠️
is being used.For these characters (
⚠
and⚠️
) I ran below Python code:this is the output it gives
When I asked ChatGPT about this, following is the result it gave:
So, I believe if we could modify SiYuan's emoji picker to insert Unicode character for emojis with an emoji modifier (variant selector-16) then this issue will get fixed.
88250 commentedon Jan 1, 2024
Hello, I'm not sure how you inserted the Emoji characters. My test here doesn't seem to find any problems:
issue.webm
fenilgmehta commentedon Jan 1, 2024
I am doing the same as you and still facing the issue.
SiYuan.Emoji.Issue.mp4
What is the language set in SiYuan for you?
88250 commentedon Jan 1, 2024
My operating system is Win11 Chinese version.
Please check whether the characters in the exported markdown are correct, or use developer tools to check the characters.
fenilgmehta commentedon Jan 1, 2024
Here is the text in
.sy
fileDeveloper tools
Markdown file content
fenilgmehta commentedon Jan 1, 2024
When I add the character with the emoji variant, the
.sy
file looks like this:88250 commentedon Jan 1, 2024
It seems that there are indeed bugs somewhere, but they cannot be located at the moment. If it is convenient, you are welcome to help us find the bug from the source code. Thank you.
fenilgmehta commentedon Jan 1, 2024
If I find it I will surely let you know.
Can we reopen this issue then.
Can you share a screenshot of what you see in Developer Tools in the below case.

Thank you🙏
88250 commentedon Jan 1, 2024
Thank you.
fenilgmehta commentedon Jan 1, 2024
If I understand the situation correctly, the character getting inserted by SiYuan's emoji picker is the same for both of us. However, the font which you are using renders that emoji character colorfully even in the absence of the emoji modifier. But, for me the default font (Arial) does not do so. Arial requires the emoji modifier to display it colorfully. If I change my font to some selected other fonts (I do not recall the names as I had done testing long time back) then the emoji renders correctly.
The question is how did the emoji character with emoji modifier got used in
SiYuan User Guide > Please Start Here > Custom Appearance > Theme > INSIDE_FILE > Development > Encoding
(link)We can say that it is not a bug. But, it would be really nice to have SiYuan's emoji picker add the emoji modifier (variant selector-16) wherever needed.
I hope this helps.
Thanks
7 remaining items