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

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
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

Successfully merging this pull request may close these issues.

None yet

2 participants