:autolink is incorrectly escaping % in urls #209

Closed
mixmix opened this Issue Mar 13, 2013 · 3 comments

Comments

Projects
None yet
2 participants
Collaborator

robin850 commented May 23, 2013

Hello @s01us,

I'm sorry but I can't reproduce it with both 2.2.2 and 2.3.0:

require "redcarpet"

puts Redcarpet::VERSION

markdown = <<-MD
https://loomio.mybalsamiq.com/projects/invitationprocess/Group%20Request%20Form
MD

renderer = Redcarpet::Markdown.new(Redcarpet::Render::HTML, :autolink => true)

puts renderer.render(markdown)

Output:

$ ruby redcarpet.rb
2.3.0
<p><a href="https://loomio.mybalsamiq.com/projects/invitationprocess/Group%20Request%20Form">https://loomio.mybalsamiq.com/projects/invitationprocess/Group%20Request%20Form</a></p>
$ bundle exec ruby redcarpet.rb
2.2.2
<p><a href="https://loomio.mybalsamiq.com/projects/invitationprocess/Group%20Request%20Form">https://loomio.mybalsamiq.com/projects/invitationprocess/Group%20Request%20Form</a></p>

mixmix commented May 24, 2013

hey, thanks for looking at this, I updated RedCarpet and seems to be behaving perfectly now.
thanks for your time

Collaborator

robin850 commented May 24, 2013

Thanks for your answer! I'm closing this, let me know if I should reopen it!

robin850 closed this May 24, 2013

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