This commit is contained in:
fantasticit 2022-06-16 16:23:06 +08:00
parent c79a6b2161
commit 3f19e0715a
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ export const Link = BuiltInLink.extend({
},
addInputRules() {
const markdownLinkSyntaxInputRuleRegExp = /(?:^|\s)\[([\w|\s|-]+)\]\((?<href>.+?)\)$/gm;
const markdownLinkSyntaxInputRuleRegExp = /(?:^|\s)\[([\w|\s|-|\u4e00-\u9fa5]+)\]\((?<href>.+?)\)$/gm;
const urlSyntaxRegExp = /(?:^|\s)(?<href>(?:https?:\/\/|www\.)[\S]+)(?:\s|\n)$/gim;
return [