chore: just add the options directly

This commit is contained in:
Nick the Sick 2024-11-01 16:59:55 +01:00
parent c57ac23760
commit e33885847e
No known key found for this signature in database
GPG Key ID: F575992F156E5BCC

View File

@ -16,9 +16,13 @@ export interface CodeBlockLowlightOptions extends CodeBlockOptions {
export const CodeBlockLowlight = CodeBlock.extend<CodeBlockLowlightOptions>({
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: {},
}
},