wip: use parent for code bleock highlight extension

This commit is contained in:
Philipp Kühn 2021-04-15 22:15:07 +02:00
parent 6c2eea094c
commit bc35016728

View File

@ -8,13 +8,13 @@ export interface CodeBlockLowlightOptions extends CodeBlockOptions {
export const CodeBlockLowlight = CodeBlock.extend<CodeBlockLowlightOptions>({
defaultOptions: {
...CodeBlock.config.defaultOptions,
...CodeBlock.options,
lowlight,
},
addProseMirrorPlugins() {
return [
// ...this.parentConfig.addProseMirrorPlugins?.() || [],
...this.parent?.() || [],
LowlightPlugin({
name: 'codeBlock',
lowlight: this.options.lowlight,