Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix emoji rendering in Markdown previews #1153

Merged
merged 2 commits into from
Nov 29, 2021
Merged

Conversation

Fs00
Copy link
Contributor

@Fs00 Fs00 commented Nov 29, 2021

This PR fixes a bug in Markdown previews that caused wrong characters to appear in place of emojis (and other UTF-8 characters I suppose).
The culprit was the Base64-decoding function written in JS, which was apparently broken. That function has been removed and replaced with the Java implementation (which instead works as intended) through a WebView JavascriptInterface.
Here's how the bug looked like:

BeforeAfter

@maniac103 maniac103 merged commit ba7ae43 into slapperwan:master Nov 29, 2021
@Fs00 Fs00 deleted the base64-fix branch November 29, 2021 19:45
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants