aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-11-20 18:52:53 +0100
committerbptato <nincsnevem662@gmail.com>2024-11-20 19:05:37 +0100
commitb06e6addddb62d68f97f6f4e2ad0cb7f6048449a (patch)
treee0307891250045c557431f6e94cd43da842fafc1
parent384722dea7f4276072d61f793526fb235097c055 (diff)
downloadchawan-b06e6addddb62d68f97f6f4e2ad0cb7f6048449a.tar.gz
md2html: fix parsing of nested parens in links
-rw-r--r--adapter/format/md2html.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/adapter/format/md2html.nim b/adapter/format/md2html.nim
index efa66dfa..ffe13682 100644
--- a/adapter/format/md2html.nim
+++ b/adapter/format/md2html.nim
@@ -126,7 +126,7 @@ proc parseLinkDestination(url: var string; line: openArray[char]; i: int): int =
let c = line[i]
if quote:
quote = false
- elif sc == '<' and c == '>' or sc != '<' and c in AsciiWhitespace + {')'}:
+ elif sc == '<' and c == '>' or sc != '<' and c in AsciiWhitespace:
break
elif c in {'<', '\n'} or c in Controls and sc != '<':
return -1