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

Use Base64 to encode html when rendering Markdown files #1102

Merged
merged 1 commit into from
Jan 12, 2021

Conversation

kekkyojin
Copy link
Collaborator

PR Checklist

Please check all that apply to this PR using "x":

  • I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
  • I have checked that this PR does not introduce a breaking change

PR Type

What kind of change does this PR introduce?

  • Bugfix

Fixes

Issue Number: #960 -still partially fixed, don't close it-

What is the current behavior?

Some problems are still showing up when using the octothorpe character

What is the new behavior?

New code fixes it by encoding the HTML string using Base64, as recommended by Google. Additionally, it no longer requires to run a regex matching, making it faster.

Testing

Search for "octothorpe-test" on the LBRY Android app and open the one on the "javirid" channel, as it includes some problematic cases. Currently it shows a few problems still. With this PR applied, everything looks fine. Compare it with the rendered Markdown on LBRY.TV

@akinwale akinwale self-requested a review January 12, 2021 07:32
@lbry-bot lbry-bot assigned akinwale and unassigned akinwale Jan 12, 2021
Copy link
Contributor

@akinwale akinwale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@lbry-bot lbry-bot assigned akinwale and unassigned akinwale Jan 12, 2021
@akinwale akinwale merged commit 74f08f8 into lbryio:master Jan 12, 2021
@kekkyojin kekkyojin deleted the fix-markdown-rendering branch January 13, 2021 15:16
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