mirror of
https://github.com/fantasticit/think.git
synced 2026-10-30 22:56:06 +08:00
fix: #75
This commit is contained in:
@@ -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 [
|
||||
|
||||
Reference in New Issue
Block a user