Skip to content

Commit

Permalink
fix: add defaultLanguage to code block options
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
  • Loading branch information
aonnikov committed Sep 17, 2024
1 parent f4ca43b commit 6478bb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/text/src/nodes/codeblock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { isActive, textblockTypeInputRule } from '@tiptap/core'
import CodeBlock, { CodeBlockOptions } from '@tiptap/extension-code-block'

export const codeBlockOptions: CodeBlockOptions = {
defaultLanguage: null,
languageClassPrefix: 'language-',
exitOnArrowDown: true,
exitOnTripleEnter: true,
Expand Down

0 comments on commit 6478bb3

Please sign in to comment.