From 0d630d79a265d573ae6224f97b7427f29a05012e Mon Sep 17 00:00:00 2001 From: Federico Soave Date: Tue, 6 Mar 2018 00:42:43 +0100 Subject: [PATCH] allow ONE level of matching parenthesis in link text. NON-COMPLIANT with commonmark! Adjust test #483 accordingly --- test/new/cm_links.html | 6 ++++-- test/new/cm_links.md | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/test/new/cm_links.html b/test/new/cm_links.html index 9716b81669..d9813d0b4a 100644 --- a/test/new/cm_links.html +++ b/test/new/cm_links.html @@ -102,9 +102,11 @@

Example 482

[link] (/uri)

-

Example 483

+

Example 4830

-

link [foo [bar]]

+

The link text may contain ONE LEVEL of balanced brackets, but not unbalanced ones, unless they are escaped:

+ +

link [foo4830]

Example 484

diff --git a/test/new/cm_links.md b/test/new/cm_links.md index 4f10a28cc1..d686e9c603 100644 --- a/test/new/cm_links.md +++ b/test/new/cm_links.md @@ -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