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,4 +1,4 @@
import { Command, createMark, markPasteRule } from '@tiptap/core'
import { Command, MarkExtension, markPasteRule } from '@tiptap/core'
import { Plugin, PluginKey } from 'prosemirror-state'
export interface LinkOptions {
@@ -10,7 +10,7 @@ export interface LinkOptions {
export const pasteRegex = /https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z]{2,}\b(?:[-a-zA-Z0-9@:%._+~#=?!&/()]*)/gi
const Link = createMark({
const Link = MarkExtension.create({
name: 'link',
inclusive: false,