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
# reproducable code for https://github.com/vmg/redcarpet/issues/474 | |
# (redcarpet-3.3.3, Windows 10 x64) | |
require 'redcarpet' | |
class TestRenderer < Redcarpet::Render::HTML | |
def emphasis(text) | |
"a" * 117 | |
end | |
end | |
markdown = Redcarpet::Markdown.new(TestRenderer) | |
puts markdown.render("*a*\n# aaa") | |
# expected: <h1>a</h1> | |
# actual: a</h1> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment