improve options interface

This commit is contained in:
Philipp Kühn
2021-02-10 18:25:08 +01:00
parent 55ff908423
commit 215c26748b
33 changed files with 68 additions and 67 deletions

View File

@@ -33,10 +33,10 @@ declare module '@tiptap/core' {
export const inputRegex = /(?:^|\s)((?:==)((?:[^~]+))(?:==))$/gm
export const pasteRegex = /(?:^|\s)((?:==)((?:[^~]+))(?:==))/gm
export const Highlight = Mark.create({
export const Highlight = Mark.create<HighlightOptions>({
name: 'highlight',
defaultOptions: <HighlightOptions>{
defaultOptions: {
multicolor: false,
HTMLAttributes: {},
},