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

\ dosen't work well on "_" #214

Closed
jjyr opened this issue Mar 20, 2013 · 5 comments
Closed

\ dosen't work well on "_" #214

jjyr opened this issue Mar 20, 2013 · 5 comments
Labels

Comments

@jjyr
Copy link

jjyr commented Mar 20, 2013

render.render("\\_dd_")
=> "<p>_dd_</p>\n"
#is ok

but

render.render("_dd\\_dd_")
=> "<p><em>dd\\</em>dd_</p>\n"
#unexpect, it should be
#<p><em>dd_dd</em></p>\n
@mattr-
Copy link
Collaborator

mattr- commented Apr 4, 2013

What options are you using when you parsing the markdown document?

@jjyr
Copy link
Author

jjyr commented Apr 5, 2013

@mattr-
:autolink => true, :space_after_headers => false, strikethrough: true, :fenced_code_blocks => true

@mattr-
Copy link
Collaborator

mattr- commented Apr 14, 2013

Awesome. Thanks! A bit behind on looking at issues at the moment, but I'll
get to this one as soon as I can.

On Fri, Apr 5, 2013 at 4:13 AM, jjy [email protected] wrote:

@mattr- https://github.com/mattr-
:autolink => true, :space_after_headers => false, strikethrough: true,
:fenced_code_blocks => true


Reply to this email directly or view it on GitHubhttps://github.com//issues/214#issuecomment-15945729
.

@jcheatham
Copy link
Contributor

Piggy-backing another broken evaluation case onto this issue (as they're superficially related at least):

renderer = Redcarpet::Render::HTML.new
markdown = Redcarpet::Markdown.new(renderer)
markdown.render("blah \\\\server\\path blah")
=> "<p>blah \\server\\path blah</p>\n"

@robin850
Copy link
Collaborator

This issue has been addressed in #380 thanks to @jcheatham so we can give it a close. Thank you everyone! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants