Test img tag conversion

This commit is contained in:
Matthew Tretter
2013-07-31 19:17:22 -04:00
parent 8a1e2d9403
commit 934c97b342

View File

@@ -62,3 +62,8 @@ def test_strong():
def test_ul():
assert md('<ul><li>a</li><li>b</li></ul>') == '* a\n* b\n'
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)'