[kramdown-users] why can't kramdown just leave my HTML alone?

Matt Neuburg matt at tidbits.com
Wed Jul 21 23:14:30 EDT 2010

require 'rubygems'
require 'kramdown'
s = '<div markdown="0">'
s += '<img src="dummy.png" alt="nothing" />'
s += '</div>'
puts Kramdown::Document.new(s).to_html

#=> <div><img alt="nothing" src="dummy.png" /></div>

But that isn't what I said, is it? Why can't kramdown just leave my img tag
alone? I might have a reason to have the src attribute come first. This is
just not nice behavior.


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
Take Control of Exploring & Customizing Snow Leopard
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