Skip to content

Commit d50efd3

Browse files
committed
feat: resolve locations to positions
1 parent 1533885 commit d50efd3

File tree

5 files changed

+1064
-3
lines changed

5 files changed

+1064
-3
lines changed

packages/core/src/api/nodeConversions/nodeToBlock.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
getBlockCache,
2424
getBlockSchema,
2525
getInlineContentSchema,
26+
getPmSchema,
2627
getStyleSchema,
2728
} from "../pmUtil.js";
2829

@@ -393,7 +394,7 @@ export function nodeToBlock<
393394
S extends StyleSchema,
394395
>(
395396
node: Node,
396-
schema: Schema,
397+
schema: Schema = getPmSchema(node),
397398
blockSchema: BSchema = getBlockSchema(schema) as BSchema,
398399
inlineContentSchema: I = getInlineContentSchema(schema) as I,
399400
styleSchema: S = getStyleSchema(schema) as S,

0 commit comments

Comments
 (0)