aboutsummaryrefslogtreecommitdiffstats
path: root/tests/basic
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2012-02-02 06:19:41 -0500
committerWaylan Limberg <waylan@gmail.com>2012-02-02 06:19:41 -0500
commit9834966294597181545d2f987f223b6ca1aeb070 (patch)
tree29c4f3a32e0672438cde07b534df49b003a9cc61 /tests/basic
parent3b6c63fbd35509e1499e9502a78c82bfa2b17957 (diff)
downloadmarkdown-9834966294597181545d2f987f223b6ca1aeb070.tar.gz
markdown-9834966294597181545d2f987f223b6ca1aeb070.tar.bz2
markdown-9834966294597181545d2f987f223b6ca1aeb070.zip
Fixed #78. Added support for two line link refs.
Also refactored the reference preprocessor to make this a little easier to implement. Regex does more now.
Diffstat (limited to 'tests/basic')
-rw-r--r--tests/basic/links-reference.html3
-rw-r--r--tests/basic/links-reference.txt5
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/basic/links-reference.html b/tests/basic/links-reference.html
index ae40975..63f242d 100644
--- a/tests/basic/links-reference.html
+++ b/tests/basic/links-reference.html
@@ -18,4 +18,5 @@ breaks</a> with one space.</p>
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
+ref</a></p>
+<p><a href="http://example.com" title="Title on next line.">a ref</a></p> \ No newline at end of file
diff --git a/tests/basic/links-reference.txt b/tests/basic/links-reference.txt
index 48a57fb..3d636e5 100644
--- a/tests/basic/links-reference.txt
+++ b/tests/basic/links-reference.txt
@@ -54,3 +54,8 @@ breaks[] with two spaces.
ref]
[short ref]: http://example.com "No more hanging empty bracket!"
+
+[a ref]
+
+[a ref]: http://example.com
+ "Title on next line."