Skip to content

Commit

Permalink
Fix heading level attribute reference in schema definition
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewshawcare committed Feb 20, 2025
1 parent 3a44a71 commit 580a8d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodes/heading/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down

0 comments on commit 580a8d2

Please sign in to comment.