Skip to content

Commit

Permalink
feat: Set explicit tag during createNode() for non-default tags (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
eemeli committed Apr 14, 2023
1 parent 165a49f commit f169304
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/doc/createNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export function createNode(
? tagObj.createNode(ctx.schema, value, ctx)
: new Scalar(value)
if (tagName) node.tag = tagName
else if (!tagObj.default) node.tag = tagObj.tag

if (ref) ref.node = node
return node
Expand Down

0 comments on commit f169304

Please sign in to comment.