Unverified Commit 1b0629bf authored by Jason Shawn D' Souza's avatar Jason Shawn D' Souza Committed by GitHub

fix: Markdown hyperlinks with parenthesis take first closing parenthesis as final (#1213)

Updating regex to pick up edge case with parentheses
parent e83ea7fd
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment