Skip to content

Commit

Permalink
add tests for link nesting
Browse files Browse the repository at this point in the history
  • Loading branch information
Feder1co5oave committed Mar 6, 2018
1 parent eb95a71 commit 13dd38a
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/new/nested_square_link.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
<h3 id="example-1">Example 1</h3>

<p><a href="/url">the <code>]</code> character</a></p>

<h3 id="example-2">Example 2</h3>

<p><a href="/url">the ` character</a></p>

<h3 id="example-3">Example 3</h3>

<p>[
[
<a href="b">a</a> <a href="d">c</a> <a href="f">e</a>
](x)
<a href="h">g</a>
[
<a href="j">i</a> <a href="l">k</a> [m <a href="o">n</a>](p)
](w)
](z)</p>

<h3 id="example-4">Example 4</h3>

<p>[nested: <a href="/href" title="description">ref</a>](/foo)

[nested: <a href="/bar">foo</a>][ref]</p>

<p>[nested: <a href="/href2">ref2</a>][ref]</p>
27 changes: 27 additions & 0 deletions test/new/nested_square_link.md
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 13dd38a

Please sign in to comment.