replace NodeExtension with Node, replace MarkExtension with Mark

This commit is contained in:
Philipp Kühn
2020-11-16 11:19:43 +01:00
parent b44aafa97c
commit 8a7603edaf
31 changed files with 105 additions and 99 deletions

View File

@@ -1,6 +1,6 @@
import {
Command,
MarkExtension,
Mark,
markInputRule,
markPasteRule,
} from '@tiptap/core'
@@ -14,7 +14,7 @@ export interface HighlightOptions {
export const inputRegex = /(?:^|\s)((?:==)((?:[^~]+))(?:==))$/gm
export const pasteRegex = /(?:^|\s)((?:==)((?:[^~]+))(?:==))/gm
const Highlight = MarkExtension.create({
const Highlight = Mark.create({
name: 'highlight',
defaultOptions: <HighlightOptions>{