From 580a8d2c439e370ed6f595df0af9201f1be07ebc Mon Sep 17 00:00:00 2001 From: Andrew Shaw Care Date: Thu, 20 Feb 2025 08:41:38 -0500 Subject: [PATCH] Fix heading level attribute reference in schema definition --- nodes/heading/schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/heading/schema.ts b/nodes/heading/schema.ts index a00d954..e23ddfd 100644 --- a/nodes/heading/schema.ts +++ b/nodes/heading/schema.ts @@ -17,7 +17,7 @@ const schema: Schema = { const id = slugify(concatenatedChildStrings, { lower: true }); return new Markdoc.Tag( - `h${node.attributes["level"]}`, + `h${attributes["level"]}`, { ...attributes, id }, children, );