Skip to content

Commit

Permalink
fix: support upcoming attrTags ast change
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Oct 8, 2024
1 parent a9a0a0b commit 5423a31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,9 @@ export const printers: Record<string, Printer<types.Node>> = {
if (opts.markoSyntax === "html") doc.push(">");
} else if (node.body.body.length) {
const lastIndex = node.body.body.length - 1;
const bodyDocs = [] as Doc[];
const bodyDocs = Array.isArray((node as any).attributeTags)
? (tagPath as any).map(print, "attributeTags")
: [];
let textOnly = true;

let textDocs = [] as Doc[];
Expand Down

0 comments on commit 5423a31

Please sign in to comment.