fix tests

This commit is contained in:
Philipp Kühn
2020-10-23 14:24:19 +02:00
parent f37e6da902
commit e2aa2e4bba
3 changed files with 24 additions and 20 deletions

View File

@@ -39,7 +39,7 @@ export interface MarkExtensionSpec<Options = {}, Commands = {}> extends Overwrit
/**
* Render HTML
*/
renderHTML?: (
renderHTML?: ((
this: {
options: Options,
},
@@ -47,7 +47,7 @@ export interface MarkExtensionSpec<Options = {}, Commands = {}> extends Overwrit
mark: Mark,
attributes: { [key: string]: any },
}
) => DOMOutputSpec,
) => DOMOutputSpec) | null,
/**
* Attributes
@@ -122,7 +122,7 @@ const defaultMark: MarkExtension = {
group: null,
spanning: null,
parseHTML: () => null,
renderHTML: () => '',
renderHTML: null,
addAttributes: () => ({}),
}