Skip to content

Commit

Permalink
allow ONE level of matching parenthesis in link text.
Browse files Browse the repository at this point in the history
NON-COMPLIANT with commonmark!
Adjust test markedjs#483 accordingly
  • Loading branch information
Feder1co5oave committed Mar 5, 2018
1 parent d5de291 commit 0d630d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions test/new/cm_links.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,11 @@ <h3 id="example-482">Example 482</h3>

<p>[link] (/uri)</p>

<h3 id="example-483">Example 483</h3>
<h3 id="example-4830">Example 4830</h3>

<p><a href="/uri">link [foo [bar]]</a></p>
<p>The link text may contain ONE LEVEL of balanced brackets, but not unbalanced ones, unless they are escaped:</p>

<p><a href="/uri">link [foo4830]</a></p>

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

Expand Down
6 changes: 4 additions & 2 deletions test/new/cm_links.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,11 @@ However, if you have ANY unbalanced parentheses, you need to escape or use the <

[link] (/uri)

### Example 483
### Example 4830

[link [foo [bar]]](/uri)
The link text may contain ONE LEVEL of balanced brackets, but not unbalanced ones, unless they are escaped:

[link [foo4830]](/uri)

### Example 484

Expand Down

0 comments on commit 0d630d7

Please sign in to comment.