From 3f19e0715a9bcda51d88f1d206142b1748672aa3 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Thu, 16 Jun 2022 16:23:06 +0800 Subject: [PATCH] fix: #75 --- packages/client/src/tiptap/core/extensions/link.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/tiptap/core/extensions/link.ts b/packages/client/src/tiptap/core/extensions/link.ts index a5bf7a6..4f8d3d3 100644 --- a/packages/client/src/tiptap/core/extensions/link.ts +++ b/packages/client/src/tiptap/core/extensions/link.ts @@ -26,7 +26,7 @@ export const Link = BuiltInLink.extend({ }, addInputRules() { - const markdownLinkSyntaxInputRuleRegExp = /(?:^|\s)\[([\w|\s|-]+)\]\((?.+?)\)$/gm; + const markdownLinkSyntaxInputRuleRegExp = /(?:^|\s)\[([\w|\s|-|\u4e00-\u9fa5]+)\]\((?.+?)\)$/gm; const urlSyntaxRegExp = /(?:^|\s)(?(?:https?:\/\/|www\.)[\S]+)(?:\s|\n)$/gim; return [