add examples for custom converters

closes #46
This commit is contained in:
AlexVonB
2021-06-27 15:53:23 +02:00
parent cec570fc49
commit 62e9f0de02
3 changed files with 41 additions and 2 deletions

View File

@@ -131,8 +131,6 @@ def test_hn_nested_simple_tag():
def test_hn_nested_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)'
image_attributes_to_markdown = [
("", ""),
("alt='Alt Text'", "Alt Text"),