Skip to content

handling br inside formatting tags #780

@directionless

Description

@directionless

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"

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions