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

Parsing of link with underscore nested in "Emphasis" tag #16

Open
Bluezen opened this issue Jan 22, 2014 · 1 comment
Open

Parsing of link with underscore nested in "Emphasis" tag #16

Bluezen opened this issue Jan 22, 2014 · 1 comment

Comments

@Bluezen
Copy link

Bluezen commented Jan 22, 2014

Hello,

The fix for issue #14 works pretty well most of the time but it fails on special case of links with underscores in it. For example:

_Follow me on [Twitter](https://twitter.com/address_with_underscore)._

Should be rendered as:

<p><em>Follow me on <a href="https://twitter.com/address_with_underscore">Twitter</a>.</em></p>

but instead it is rendered as:

<p><em>Follow me on [Twitter](<a href="https://twitter.com/address">https://twitter.com/address</a></em>with<em>underscore).</em></p>
@Bluezen
Copy link
Author

Bluezen commented Jan 30, 2014

Actually, the issue seems to affect any tags nested in "Emphasis" tag.

_Some **Text**._

is rendered as:

<p><em>Some **Text**.</em></p>

instead of:

<p><em>Some <strong>Text</strong>.</em></p>

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

No branches or pull requests

1 participant