From cbb8de8c5001b85dd28b6dca20c0bf58827167fb Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Mon, 11 Oct 2010 23:40:50 -0400 Subject: Fixed Ticket 79. Linebreaks in reference link identifiers are now ignored. This matches the most recent version of markdown.pl among other implementations and allows links to work after editors do autolinebreak stuff to text. --- tests/basic/links-reference.html | 8 +++++++- tests/basic/links-reference.txt | 10 ++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/basic/links-reference.html b/tests/basic/links-reference.html index 9780bf3..992525c 100644 --- a/tests/basic/links-reference.html +++ b/tests/basic/links-reference.html @@ -9,4 +9,10 @@
[four]: /url
 

With angle brackets.

-

And without.

\ No newline at end of file +

And without.

+

With line +breaks

+

and line +breaks with one space.

+

and [line
+breaks[] with two spaces.

\ No newline at end of file diff --git a/tests/basic/links-reference.txt b/tests/basic/links-reference.txt index 9993b10..c95a195 100644 --- a/tests/basic/links-reference.txt +++ b/tests/basic/links-reference.txt @@ -37,3 +37,13 @@ And [without][]. [angle brackets]: "Angle Brackets" [without]: http://example.com/ "Without angle brackets." +With [line +breaks][] + +and [line +breaks][] with one space. + +and [line +breaks[] with two spaces. + +[line breaks]: http://example.com "Yes this works" -- cgit v1.2.3