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 for text not rendering after # in markdown #1033

Merged
merged 1 commit into from
Oct 23, 2020

Conversation

kekkyojin
Copy link
Collaborator

@kekkyojin kekkyojin commented Oct 15, 2020

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
  • This PR introduces breaking changes and I have provided a detailed explanation below

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting)
  • Refactoring (no functional changes)
  • Documentation changes
  • Other - Please describe:

Fixes

Issue Number: #960 (partial fix, do not close it)

What is the current behavior?

Due to some change introduced in Chrome, WebViews are unable to render anything after the first '#'. If that happens at the beginning of the markdown document, the HTML render will not be displayed, although the HTML code itself is correct.

Strings like '#1', '#hashtag' will make the problem appear.

What is the new behavior?

This fix changes the '#' into '%23' on the HTML generated code from markdown.

Other information

The issue indicated above was about two distincts problems. This one fixes the one from the German blog post. That file was modified, so it is no longer showing the problem. However, it was identified as being related to '#'.

The other one was about lbrycast style of claims, where video was embedded into the markdown using an IFRAME. I will also try to fix that in some future PR.

@kekkyojin
Copy link
Collaborator Author

HTML generated code is correct, so in order to test it, visiting some test claims would be required. I suggest visitng following claim before and after applying the PR:

Claim to test hashtag style text

@kauffj kauffj requested a review from akinwale October 19, 2020 18:34
@lbry-bot lbry-bot assigned akinwale and unassigned akinwale Oct 19, 2020
@kauffj
Copy link
Member

kauffj commented Oct 22, 2020

@akinwale please review/merge this

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! Thanks.

@lbry-bot lbry-bot assigned akinwale and unassigned akinwale Oct 23, 2020
@akinwale akinwale merged commit dd52ff9 into lbryio:master Oct 23, 2020
@kekkyojin kekkyojin deleted the md-text-rendering branch October 23, 2020 12:32
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

3 participants