mirror of https://github.com/fantasticit/think.git
fix: #75
parent
c79a6b2161
commit
3f19e0715a
|
@ -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 [
|
||||
|
|
Loading…
Reference in New Issue