make conversion non-destructive to soup; improve div/article/section handling (#184)

Signed-off-by: chrispy <chrispy@synopsys.com>
This commit is contained in:
Chris Papademetrious
2025-02-04 18:09:24 -05:00
committed by GitHub
parent c52a50e66a
commit 3026602686
3 changed files with 98 additions and 30 deletions

View File

@@ -6,7 +6,7 @@ def test_single_tag():
def test_soup():
assert md('<div><span>Hello</div></span>') == 'Hello'
assert md('<div><span>Hello</div></span>') == '\n\nHello\n\n'
def test_whitespace():