diff --git a/packages/extension-code-block-lowlight/src/code-block-lowlight.ts b/packages/extension-code-block-lowlight/src/code-block-lowlight.ts index c52fe3e14..8bace6df9 100644 --- a/packages/extension-code-block-lowlight/src/code-block-lowlight.ts +++ b/packages/extension-code-block-lowlight/src/code-block-lowlight.ts @@ -16,9 +16,13 @@ export interface CodeBlockLowlightOptions extends CodeBlockOptions { export const CodeBlockLowlight = CodeBlock.extend({ addOptions() { return { - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - ...this.parent!(), + ...this.parent?.(), lowlight: {}, + languageClassPrefix: 'language-', + exitOnTripleEnter: true, + exitOnArrowDown: true, + defaultLanguage: null, + HTMLAttributes: {}, } },