From 13dd38a1f02713c28138dc5ecd19d37968502ca6 Mon Sep 17 00:00:00 2001 From: Federico Soave Date: Tue, 6 Mar 2018 02:35:56 +0100 Subject: [PATCH] add tests for link nesting --- test/new/nested_square_link.html | 24 ++++++++++++++++++++++++ test/new/nested_square_link.md | 27 +++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/test/new/nested_square_link.html b/test/new/nested_square_link.html index 7b6986a103..58d62c31f2 100644 --- a/test/new/nested_square_link.html +++ b/test/new/nested_square_link.html @@ -1,3 +1,27 @@ +

Example 1

+

the ] character

+

Example 2

+

the ` character

+ +

Example 3

+ +

[ + [ + a c e + ](x) + g + [ + i k [m n](p) + ](w) +](z)

+ +

Example 4

+ +

[nested: ref](/foo) + +[nested: foo][ref]

+ +

[nested: ref2][ref]

\ No newline at end of file diff --git a/test/new/nested_square_link.md b/test/new/nested_square_link.md index 0f311e9516..4e802d7e9b 100644 --- a/test/new/nested_square_link.md +++ b/test/new/nested_square_link.md @@ -1,3 +1,30 @@ +### Example 1 + [the `]` character](/url) +### Example 2 + [the ` character](/url) + +### Example 3 + +[ + [ + [a](b) [c](d) [e](f) + ](x) + [g](h) + [ + [i](j) [k](l) [m [n](o)](p) + ](w) +](z) + +### Example 4 + +[nested: [ref]](/foo) +[nested: [foo](/bar)][ref] + +[nested: [ref2]][ref] + + +[ref]: /href "description" +[ref2]: /href2 \ No newline at end of file