@@ -70,7 +70,6 @@ import {
7070 markdownToBlocks ,
7171 markdownToHTML ,
7272} from "../api/parsers/markdown/parseMarkdown.js" ;
73- import { CodeBlockOptions } from "../blocks/Code/block.js" ;
7473import { editorHasBlockWithType } from "../blocks/defaultBlockTypeGuards.js" ;
7574import type { ThreadStore , User } from "../comments/index.js" ;
7675import { BlockChangePlugin } from "../extensions/BlockChange/BlockChangePlugin.js" ;
@@ -190,11 +189,6 @@ export type BlockNoteEditorOptions<
190189 showCursorLabels ?: "always" | "activity" ;
191190 } ;
192191
193- /**
194- * Options for code blocks.
195- */
196- codeBlock ?: CodeBlockOptions ;
197-
198192 /**
199193 * Configuration for the comments feature, requires a `threadStore`.
200194 *
@@ -253,18 +247,6 @@ export type BlockNoteEditorOptions<
253247 class ?: string ;
254248 } ) => Plugin ;
255249
256- /**
257- * Configuration for headings
258- */
259- heading ?: {
260- /**
261- * The levels of headings that should be available in the editor.
262- * @note Configurable up to 6 levels of headings.
263- * @default [1, 2, 3]
264- */
265- levels ?: ( 1 | 2 | 3 | 4 | 5 | 6 ) [ ] ;
266- } ;
267-
268250 /**
269251 * The content that should be in the editor when it's created, represented as an array of {@link PartialBlock} objects.
270252 *
@@ -585,10 +567,6 @@ export class BlockNoteEditor<
585567 cellTextColor : boolean ;
586568 headers : boolean ;
587569 } ;
588- codeBlock : CodeBlockOptions ;
589- heading : {
590- levels : ( 1 | 2 | 3 | 4 | 5 | 6 ) [ ] ;
591- } ;
592570 } ;
593571
594572 public static create <
@@ -638,15 +616,6 @@ export class BlockNoteEditor<
638616 cellTextColor : options ?. tables ?. cellTextColor ?? false ,
639617 headers : options ?. tables ?. headers ?? false ,
640618 } ,
641- codeBlock : {
642- indentLineWithTab : options ?. codeBlock ?. indentLineWithTab ?? true ,
643- defaultLanguage : options ?. codeBlock ?. defaultLanguage ?? "text" ,
644- supportedLanguages : options ?. codeBlock ?. supportedLanguages ?? { } ,
645- createHighlighter : options ?. codeBlock ?. createHighlighter ?? undefined ,
646- } ,
647- heading : {
648- levels : options ?. heading ?. levels ?? [ 1 , 2 , 3 ] ,
649- } ,
650619 } ;
651620
652621 // apply defaults
0 commit comments