Fix parsing corrupt html

This commit is contained in:
SimonIT
2020-08-31 13:15:10 +02:00
parent 987a2a9cae
commit 1b3136ad04
2 changed files with 5 additions and 7 deletions

View File

@@ -157,3 +157,7 @@ def test_bullets():
def test_img():
assert md('<img src="/path/to/img.jpg" alt="Alt text" title="Optional title" />') == '![Alt text](/path/to/img.jpg "Optional title")'
assert md('<img src="/path/to/img.jpg" alt="Alt text" />') == '![Alt text](/path/to/img.jpg)'
def test_div():
assert md('Hello</div> World') == 'Hello World'