FIX: Extract div tags within spans

This commit is contained in:
Robin Ward
2017-05-09 12:33:54 -04:00
parent c2829dce22
commit b57b635d30
2 changed files with 20 additions and 2 deletions

View File

@ -219,4 +219,9 @@ describe HtmlToMarkdown do
expect(html_to_markdown("<style>* { margin: 0 }</style>")).to eq("")
end
it "handles divs within spans" do
html = "<div>1st paragraph<span><div>2nd paragraph</div></span></div>"
expect(html_to_markdown(html)).to eq("1st paragraph\n2nd paragraph")
end
end