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

only decode the url when the content of the link is a string #1042

Merged
merged 1 commit into from
Oct 31, 2017
Merged

only decode the url when the content of the link is a string #1042

merged 1 commit into from
Oct 31, 2017

Conversation

mslourens
Copy link
Contributor

Fixes #1040

The cause of the problem is in MarkdownPreview.js. The function fixDecodedURI only checks for innerText for every anchor element, but doesn't check if the anchor element contains other elements. In that case the uri is not decoded and the node remains as is.

@kazup01 kazup01 self-requested a review October 31, 2017 04:23
Copy link
Member

@kazup01 kazup01 left a comment

Choose a reason for hiding this comment

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

LGTM

@kazup01 kazup01 merged commit 7d97784 into BoostIO:master Oct 31, 2017
@kazup01
Copy link
Member

kazup01 commented Oct 31, 2017

Merged. Thanks for your contribution! @mslourens 🎉

@mslourens mslourens deleted the image-in-anchor branch October 31, 2017 07:56
@kohei-takata kohei-takata mentioned this pull request Nov 25, 2017
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.

<a href="foo"> <img src="bar"/> </a> Syntax Broken
3 participants