Skip to content

Commit

Permalink
editor: handle md links with parentheses (streetwriters#3996)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr authored Dec 19, 2023
1 parent 233baf7 commit 4e6466f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/extensions/link/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { markInputRule, markPasteRule } from "@tiptap/core";
import TiptapLink from "@tiptap/extension-link";

const linkRegex = /(?:__|[*#])|\[(.*?)\]\(.*?\)/gm;
const regExp = /\((.*?)\)/gm;
const regExp = /(?:__|[*#])|\[.*?\]\((.*?)\)/gm;

export const Link = TiptapLink.extend({
addInputRules() {
Expand Down

0 comments on commit 4e6466f

Please sign in to comment.