from markdownify import markdownify as md def test_nested(): text = md('
This is an example link.
') assert text == 'This is an [example link](http://example.com/).\n\n' def test_ignore_comments(): text = md("") assert text == "" def test_ignore_comments_with_other_tags(): text = md("example link") assert text == "[example link](http://example.com/)"