I'm trying to convert html to markdown. Playing with Kramdown, it's pretty cool. But, I found a bit of a corner case. If there are br tags inside formatting, it comes out a bit funny. Honestly I'm not really sure what correct should be, but:
[78] pry(main)> Kramdown::Document.new('<h1>foo<br>bar</h1>', :input => 'html').to_kramdown
=> "# foo \nbar\n\n"
I'm trying to convert html to markdown. Playing with Kramdown, it's pretty cool. But, I found a bit of a corner case. If there are
brtags inside formatting, it comes out a bit funny. Honestly I'm not really sure what correct should be, but: