Skip to content

Commit 6b7bad8

Browse files
committed
chore: update comments
1 parent 8ef6188 commit 6b7bad8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/core/src/schema/blocks/createSpec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export function getParseRules<
8080
}
8181

8282
if (config.content === "inline") {
83-
// Parse the blockquote content as inline content
83+
// Parse the inline content if it exists
8484
const element = node as HTMLElement;
8585

8686
// Clone to avoid modifying the original
@@ -208,6 +208,8 @@ export function addNodeAndExtensionsToSpec<
208208
applyNonSelectableBlockFix(nodeView, this.editor);
209209
}
210210

211+
// See explanation for why `update` is not implemented for NodeViews
212+
// https://github.com/TypeCellOS/BlockNote/pull/1904#discussion_r2313461464
211213
return nodeView;
212214
};
213215
},

packages/core/src/schema/blocks/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ export type BlockImplementation<
513513

514514
/**
515515
* The blocks that this block should run before.
516-
* This is used to determine the order in which blocks are rendered.
516+
* This is used to determine the order in which blocks are parsed
517517
*/
518518
runsBefore?: string[];
519519

0 commit comments

Comments
 (0)