mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-16 21:35:10 +00:00
Fixed mermaid dep plugins (#7552)
Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com>
This commit is contained in:
parent
faac57091c
commit
780721f7fd
@ -117,7 +117,8 @@ export const MermaidExtension = CodeBlockLowlight.extend<MermaidOptions>({
|
||||
},
|
||||
|
||||
addProseMirrorPlugins () {
|
||||
return [...(this.parent?.() ?? []), MermaidDecorator(this.options)]
|
||||
const parent = (this.parent?.() ?? []).filter((p) => p.props.handlePaste === undefined)
|
||||
return [...parent, MermaidDecorator(this.options)]
|
||||
},
|
||||
|
||||
addNodeView () {
|
||||
|
Loading…
Reference in New Issue
Block a user