From 12b783c4d276457dfb77223a2073fee66ac74dab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Wed, 28 Oct 2020 21:30:50 +0100 Subject: [PATCH] formatting --- packages/core/src/pasteRules/markPasteRule.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/core/src/pasteRules/markPasteRule.ts b/packages/core/src/pasteRules/markPasteRule.ts index 85f5a93c..0dc63d99 100644 --- a/packages/core/src/pasteRules/markPasteRule.ts +++ b/packages/core/src/pasteRules/markPasteRule.ts @@ -2,7 +2,6 @@ import { Plugin } from 'prosemirror-state' import { Slice, Fragment, MarkType } from 'prosemirror-model' export default function (regexp: RegExp, type: MarkType, getAttrs?: (match: any) => any): Plugin { - const handler = (fragment: Fragment, parent?: any) => { const nodes: any[] = [] @@ -33,7 +32,6 @@ export default function (regexp: RegExp, type: MarkType, getAttrs?: (match: any) // adding the markdown part to nodes nodes.push(child .cut(textStart, textEnd) - // @ts-ignore .mark(type.create(attrs).addToSet(child.marks))) pos = matchEnd @@ -59,5 +57,4 @@ export default function (regexp: RegExp, type: MarkType, getAttrs?: (match: any) }, }, }) - }