aboutsummaryrefslogtreecommitdiffstats
path: root/tests/basic
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2010-10-11 23:59:55 -0400
committerWaylan Limberg <waylan@gmail.com>2010-10-11 23:59:55 -0400
commit3740aefd95f6a35d357ef78d3e4966ffd1baf388 (patch)
tree9aec48b392abec2368126fc5434a67ea90b4e63e /tests/basic
parentcbb8de8c5001b85dd28b6dca20c0bf58827167fb (diff)
downloadmarkdown-3740aefd95f6a35d357ef78d3e4966ffd1baf388.tar.gz
markdown-3740aefd95f6a35d357ef78d3e4966ffd1baf388.tar.bz2
markdown-3740aefd95f6a35d357ef78d3e4966ffd1baf388.zip
Added short reference links. No more hanging empty brackets on reference links; i.e., [this works]. Associated with and noted as missing when debuging Ticket 79.
Diffstat (limited to 'tests/basic')
-rw-r--r--tests/basic/links-reference.html5
-rw-r--r--tests/basic/links-reference.txt7
2 files changed, 11 insertions, 1 deletions
diff --git a/tests/basic/links-reference.html b/tests/basic/links-reference.html
index 992525c..ae40975 100644
--- a/tests/basic/links-reference.html
+++ b/tests/basic/links-reference.html
@@ -15,4 +15,7 @@ breaks</a></p>
<p>and <a href="http://example.com" title="Yes this works">line
breaks</a> with one space.</p>
<p>and [line<br />
-breaks[] with two spaces.</p> \ No newline at end of file
+breaks[] with two spaces.</p>
+<p><a href="http://example.com" title="No more hanging empty bracket!">short ref</a></p>
+<p><a href="http://example.com" title="No more hanging empty bracket!">short
+ref</a></p> \ No newline at end of file
diff --git a/tests/basic/links-reference.txt b/tests/basic/links-reference.txt
index c95a195..48a57fb 100644
--- a/tests/basic/links-reference.txt
+++ b/tests/basic/links-reference.txt
@@ -47,3 +47,10 @@ and [line
breaks[] with two spaces.
[line breaks]: http://example.com "Yes this works"
+
+[short ref]
+
+[short
+ref]
+
+[short ref]: http://example.com "No more hanging empty bracket!"