ignore doctype tag, test cdata tag

fixes #45
This commit is contained in:
AlexVonB
2021-05-30 11:15:20 +02:00
parent 9cb940cbc0
commit 129c4ef060
2 changed files with 7 additions and 2 deletions

View File

@@ -21,3 +21,8 @@ def test_code_with_tricky_content():
assert md('<code>/home/</code><b>username</b>') == "`/home/`**username**"
assert md('First line <code>blah blah<br />blah blah</code> second line') \
== "First line `blah blah \nblah blah` second line"
def test_special_tags():
assert md('<!DOCTYPE html>') == ''
assert md('<![CDATA[foobar]]>') == 'foobar'