From 5423a3197e13bb82eac6f7e855321f17d6353bee Mon Sep 17 00:00:00 2001 From: dpiercey Date: Tue, 8 Oct 2024 09:17:20 -0700 Subject: [PATCH] fix: support upcoming attrTags ast change --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index d960480..37087b4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -402,7 +402,9 @@ export const printers: Record> = { 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[];