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>({ export const CodeBlockLowlight = CodeBlock.extend<CodeBlockLowlightOptions>({
defaultOptions: { defaultOptions: {
...CodeBlock.config.defaultOptions, ...CodeBlock.options,
lowlight, lowlight,
}, },
addProseMirrorPlugins() { addProseMirrorPlugins() {
return [ return [
// ...this.parentConfig.addProseMirrorPlugins?.() || [], ...this.parent?.() || [],
LowlightPlugin({ LowlightPlugin({
name: 'codeBlock', name: 'codeBlock',
lowlight: this.options.lowlight, lowlight: this.options.lowlight,