[kramdown-users] possible bug: kramdown wrapping <br> in <p>

Matt Neuburg matt at tidbits.com
Mon Aug 9 21:52:56 EDT 2010


require 'kramdown'
s = <<END
<div>
</div>
<br />
<div>
</div>
END
puts Kramdown::Document.new(s).to_html

The result is:

<div>
</div>
<p><br /></p>
<div>
</div>

This feels like a possible bug. m.

-- 
matt neuburg, phd = matt at tidbits.com, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf
AppleScript: the Definitive Guide, 2nd edition
http://www.tidbits.com/matt/default.html#applescriptthings
Take Control of Exploring & Customizing Snow Leopard
http://tinyurl.com/kufyy8
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com





More information about the kramdown-users mailing list