diff options
author | Waylan Limberg <waylan@gmail.com> | 2011-06-23 13:56:40 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2011-06-23 13:56:40 -0400 |
commit | 06004bd900b7425641932d27f0bb5a77fadfcff5 (patch) | |
tree | ec1b940c4bf3e6863926edfd6a6ad87419078d6f /tests | |
parent | 41194b5f020aef6aa3d980e415162ab2ad541299 (diff) | |
download | markdown-06004bd900b7425641932d27f0bb5a77fadfcff5.tar.gz markdown-06004bd900b7425641932d27f0bb5a77fadfcff5.tar.bz2 markdown-06004bd900b7425641932d27f0bb5a77fadfcff5.zip |
Added test for escaping chars in link urls. Closes #14 which was fixed in previous commits. This addes the missing tests.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/misc/escaped_links.html | 3 | ||||
-rw-r--r-- | tests/misc/escaped_links.txt | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/misc/escaped_links.html b/tests/misc/escaped_links.html new file mode 100644 index 0000000..eb4a118 --- /dev/null +++ b/tests/misc/escaped_links.html @@ -0,0 +1,3 @@ +<p>Backslashed in links:</p> +<p><a href="/query?q=go:GO\:0000307">q=go:GO\:0000307</a></p> +<p><a href="/query?q=go:GO\:0000308" title="/query?q=go:GO\:0000308">q=go:GO\:0000308</a></p>
\ No newline at end of file diff --git a/tests/misc/escaped_links.txt b/tests/misc/escaped_links.txt new file mode 100644 index 0000000..25d5e3f --- /dev/null +++ b/tests/misc/escaped_links.txt @@ -0,0 +1,7 @@ +Backslashed in links: + +[q=go:GO\\:0000307](/query?q=go:GO\\:0000307) + +[q=go:GO\\:0000308][foo] + +[foo]: /query?q=go:GO\:0000308 "/query?q=go:GO\:0000308" |