prevent <hn> to call convert_hn and crash

fixes #142
This commit is contained in:
AlexVonB
2024-11-24 21:20:57 +01:00
parent 9595618796
commit 3466061ca9
2 changed files with 4 additions and 2 deletions

View File

@@ -134,6 +134,7 @@ def test_hn():
assert md('<h5>Hello</h5>') == '\n##### Hello\n\n'
assert md('<h6>Hello</h6>') == '\n###### Hello\n\n'
assert md('<h10>Hello</h10>') == md('<h6>Hello</h6>')
assert md('<hn>Hello</hn>') == md('Hello')
def test_hn_chained():