From c6d43581f9c57d1dd1c6512a76f065d235411822 Mon Sep 17 00:00:00 2001 From: boojack Date: Sat, 4 Mar 2023 20:54:14 +0800 Subject: [PATCH] revert: Fix: Markdown hyperlinks with parenthesis take first closing parenthesis as final (#1251) Revert "fix: Markdown hyperlinks with parenthesis take first closing parenthesis as final (#1213)" This reverts commit 1b0629bf0f2b4e4633d42917db257776b79295e9. --- web/src/labs/marked/parser/Link.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/labs/marked/parser/Link.tsx b/web/src/labs/marked/parser/Link.tsx index 10e7c77c..1faeef00 100644 --- a/web/src/labs/marked/parser/Link.tsx +++ b/web/src/labs/marked/parser/Link.tsx @@ -6,7 +6,7 @@ import BoldEmphasis from "./BoldEmphasis"; import PlainText from "./PlainText"; import { matcher } from "../matcher"; -export const LINK_REG = /\[(.*?)\]\((.+?)\)$/; +export const LINK_REG = /\[(.*?)\]\((.+?)\)+/; const renderer = (rawStr: string) => { const matchResult = matcher(rawStr, LINK_REG);