add new syntax to all packages

This commit is contained in:
Philipp Kühn
2020-11-15 23:25:25 +01:00
parent 17dd284366
commit 034ee139a3
39 changed files with 353 additions and 205 deletions

View File

@@ -1,5 +1,5 @@
import {
Command, createMark, markInputRule, markPasteRule,
Command, MarkExtension, markInputRule, markPasteRule,
} from '@tiptap/core'
export interface BoldOptions {
@@ -13,7 +13,7 @@ export const starPasteRegex = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/gm
export const underscoreInputRegex = /(?:^|\s)((?:__)((?:[^__]+))(?:__))$/gm
export const underscorePasteRegex = /(?:^|\s)((?:__)((?:[^__]+))(?:__))/gm
const Bold = createMark({
const Bold = MarkExtension.create({
name: 'bold',
defaultOptions: <BoldOptions>{