Created
April 18, 2013 02:46
-
-
Save steved/5409631 to your computer and use it in GitHub Desktop.
Redcarpet and escape_utils use different versions of houdini underneath. Unfortunately, that means any project with both will have problems.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'redcarpet' # => 2.2.2 | |
require 'escape_utils' # => 0.3.2 | |
EscapeUtils.escape_html("test") | |
__END__ | |
ruby(11004,0x7fff75318960) malloc: *** error for object 0x106a20cd0: pointer being realloc'd was not allocated | |
*** set a breakpoint in malloc_error_break to debug | |
Abort trap: 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'escape_utils' # => 0.3.2 | |
require 'redcarpet' # => 2.2.2 | |
puts EscapeUtils.escape_html(%Q{"'^test}) | |
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, :autolink => true, :space_after_headers => true) | |
puts markdown.render <<-END | |
# Hello | |
https://www.google.com | |
END | |
__END__ | |
"'^test | |
<h1></h1> | |
<p>ef="">��specificationhttps://www.google.com</a></p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment