xijo/reverse_markdown

Doesn't handle <br><br> within <strong></strong>

Opened this issue · 1 comments

ReverseMarkdown.convert("<strong>hello<br><br>world</strong>")

=>

**hello  
  
world** 

Expected:

**hello**  
  
**world**  

Related:

[70] pry(main)> ReverseMarkdown.convert '<h1>foo<br>bar</h1>'

=> "# foo  \nbar\n"