refactoring

This commit is contained in:
Philipp Kühn
2020-10-22 11:14:44 +02:00
parent 9697d585fe
commit 930eb63564
7 changed files with 28 additions and 26 deletions

View File

@@ -21,7 +21,7 @@ export interface MarkExtensionSpec<Options = {}, Commands = {}> extends Extensio
attributes: { [key: string]: any },
}
) => DOMOutputSpec,
createAttributes?: (
addAttributes?: (
this: {
options: Options,
},
@@ -45,7 +45,7 @@ const defaultMark: MarkExtension = {
spanning: null,
parseHTML: () => null,
renderHTML: () => null,
createAttributes: () => ({}),
addAttributes: () => ({}),
}
export function createMark<Options extends {}, Commands extends {}>(config: MarkExtensionSpec<Options, Commands>) {