clean up paste rule code
This commit is contained in:
@@ -55,7 +55,7 @@ export default new Mark<LinkOptions>()
|
|||||||
},
|
},
|
||||||
}))
|
}))
|
||||||
.pasteRules(({ type }) => [
|
.pasteRules(({ type }) => [
|
||||||
markPasteRule(pasteRegex, type, (url: string) => ({ href: url })),
|
markPasteRule(pasteRegex, type),
|
||||||
])
|
])
|
||||||
.plugins(({ options }) => {
|
.plugins(({ options }) => {
|
||||||
if (!options.openOnClick) {
|
if (!options.openOnClick) {
|
||||||
|
|||||||
Reference in New Issue
Block a user