mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-22 09:25:53 +08:00
Merge branch 'develop' into next
This commit is contained in:
commit
8c68da29be
@ -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: {},
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user