From 7de3342ab1333ff2842dbb56169d770e46fa5086 Mon Sep 17 00:00:00 2001 From: Yuki Izumi Date: Thu, 18 May 2017 11:38:11 +1000 Subject: [PATCH] Allow arbitrary nesting of parentheses --- lib/helpers/parse_link_destination.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/helpers/parse_link_destination.js b/lib/helpers/parse_link_destination.js index e9d575d..a2497bd 100644 --- a/lib/helpers/parse_link_destination.js +++ b/lib/helpers/parse_link_destination.js @@ -59,7 +59,6 @@ module.exports = function parseLinkDestination(str, pos, max) { if (code === 0x28 /* ( */) { level++; - if (level > 1) { break; } } if (code === 0x29 /* ) */) {