diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2015-02-24 19:01:25 -0500 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2015-02-24 19:04:28 -0500 |
commit | f54cd8652df84d5f8655819fff0631f0fc92a2b6 (patch) | |
tree | ef9d3c49e4966e0399d2772ca610459074c0d9e1 /tests/extensions | |
parent | 81a6ceab4e0eda4238d38513a83e430ea9783d9d (diff) | |
download | markdown-f54cd8652df84d5f8655819fff0631f0fc92a2b6.tar.gz markdown-f54cd8652df84d5f8655819fff0631f0fc92a2b6.tar.bz2 markdown-f54cd8652df84d5f8655819fff0631f0fc92a2b6.zip |
No `=` in key or value of attr lists.
Fixes #389. Thanks for the report @lazka.
Diffstat (limited to 'tests/extensions')
-rw-r--r-- | tests/extensions/attr_list.html | 8 | ||||
-rw-r--r-- | tests/extensions/attr_list.txt | 12 |
2 files changed, 19 insertions, 1 deletions
diff --git a/tests/extensions/attr_list.html b/tests/extensions/attr_list.html index b76f73b..2a36dbc 100644 --- a/tests/extensions/attr_list.html +++ b/tests/extensions/attr_list.html @@ -57,4 +57,10 @@ And a <strong class="nest">nested <a class="linky2" href="http://example.com" ti <dd><em class="inline">dd</em></dd> <dt><em class="inline">DT3</em></dt> <dd>Some dd</dd> -</dl>
\ No newline at end of file +</dl> +<h1>Bad attributes</h1> +<p>Key without <em foo="foo">value</em></p> +<p>Value without <em>key</em></p> +<p>No <em>key or value</em></p> +<p><em>Weirdness</em></p> +<p><em>More weirdness</em></p>
\ No newline at end of file diff --git a/tests/extensions/attr_list.txt b/tests/extensions/attr_list.txt index da108e6..c2adbf4 100644 --- a/tests/extensions/attr_list.txt +++ b/tests/extensions/attr_list.txt @@ -76,3 +76,15 @@ DT2 {.term} *DT3*{.inline} : Some dd +# Bad attributes + +Key without *value*{ foo= } + +Value without *key*{ =bar } + +No *key or value*{ = } + +*Weirdness*{ == } + +*More weirdness*{ === } + |