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 1b0629bf0f.
This commit is contained in:
boojack 2023-03-04 20:54:14 +08:00 committed by GitHub
parent 31399fe475
commit c6d43581f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);