FEATURE: support mark tag (#12088)

This commit adds support for `mark` tag for highlighting text content.
This commit is contained in:
Arpit Jalan
2021-02-15 21:47:30 +05:30
committed by GitHub
parent 4b05fc2d2d
commit 85c4e8fd32
7 changed files with 26 additions and 4 deletions

View File

@ -205,6 +205,10 @@ describe HtmlToMarkdown do
expect(html_to_markdown("H<sub>2</sub>O")).to eq("H<sub>2</sub>O")
end
it "supports <mark>" do
expect(html_to_markdown("<mark>This is highlighted!</mark>")).to eq("<mark>This is highlighted!</mark>")
end
it "supports <sup>" do
expect(html_to_markdown("<sup>Super Script!</sup>")).to eq("<sup>Super Script!</sup>")
end