Inline markup is ignored inside parenthesis #256

Closed
nono opened this Issue May 29, 2013 · 4 comments

Projects

None yet

2 participants

@nono
Contributor
nono commented May 29, 2013

Hi,

inline markup, like italics, is ignored inside parenthesis with no_intra_emphasis. For example:

markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, no_intra_emphasis: true)
markdown.render "Foo (_bar_)"
# => "<p>Foo (_bar_)</p>\n"

In fact, it's only the opening parenthesis that blocks it. If we had a space after it, it works:

markdown.render "Foo ( _bar_)"
# => "<p>Foo ( <em>bar</em>)</p>\n"
@nono
Contributor
nono commented May 29, 2013

There is the same issue after a non-breaking space:

markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, no_intra_emphasis: true)
markdown.render "There is a non-breaking space here -> **foo**  bar"
# => "<p>There is a non-breaking space here -&gt; **foo**  bar</p>\n"
@robin850 robin850 was assigned Jun 7, 2013
@robin850
Collaborator

I plan to fix it as soon as possible. Thanks for reporting!

@robin850 robin850 closed this in #270 Jun 14, 2013
@robin850
Collaborator

This has been fixed! Thanks for reporting. Have a nice day. 😃

@vmg : Could you please backport this into GitHub? It's quite a redundant bug. Thanks.

@nono
Contributor
nono commented Jun 15, 2013

Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment