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 [