summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2016-09-23 19:33:56 -0400
committerWaylan Limberg <waylan.limberg@icloud.com>2016-09-23 19:33:56 -0400
commit4747cf794b03920153a10ee7a8dd53011bf4802f (patch)
tree9388dce725f4338765832afd77eaf702da770b94 /tests
parent435bb72fb440c2349bc7c59ff1726cbcde4f15f5 (diff)
downloadpython-markdown-4747cf794b03920153a10ee7a8dd53011bf4802f.tar.gz
Don't allow equal signs in attr_list keys.
This will probably not result in the output intending by the author, but the syntax would be incorrect so the author needs to edit the document anyway. We just need to ensure the parser does not crash here. Fixes #498.
Diffstat (limited to 'tests')
-rw-r--r--tests/extensions/attr_list.html3
-rw-r--r--tests/extensions/attr_list.txt2
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/extensions/attr_list.html b/tests/extensions/attr_list.html
index 93a862f..6eafd3e 100644
--- a/tests/extensions/attr_list.html
+++ b/tests/extensions/attr_list.html
@@ -65,4 +65,5 @@ And a <strong class="nest">nested <a class="linky2" href="http://example.com" ti
<p><em>Weirdness</em></p>
<p><em>More weirdness</em></p>
<p>Attr_lists do not contain <em>newlines</em>{ foo=bar
-key=value }</p> \ No newline at end of file
+key=value }</p>
+<p>Extra <em foo="bar">equals signs</em></p> \ No newline at end of file
diff --git a/tests/extensions/attr_list.txt b/tests/extensions/attr_list.txt
index 603b611..54ebcb6 100644
--- a/tests/extensions/attr_list.txt
+++ b/tests/extensions/attr_list.txt
@@ -90,3 +90,5 @@ No *key or value*{ = }
Attr_lists do not contain *newlines*{ foo=bar
key=value }
+
+Extra *equals signs*{ foo=bar=baz }