prevent very large headline prefixes
for example: `<h9999999>` could crash the conversion. fixes #143
This commit is contained in:
@@ -133,6 +133,7 @@ def test_hn():
|
||||
assert md('<h4>Hello</h4>') == '\n#### Hello\n\n'
|
||||
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>')
|
||||
|
||||
|
||||
def test_hn_chained():
|
||||
|
||||
Reference in New Issue
Block a user