From 89337e3810325407dbc6f36441428ecc71c6875b Mon Sep 17 00:00:00 2001 From: Louisa Chu Date: Mon, 29 Dec 2025 15:15:20 -0800 Subject: [PATCH] update fragment --- src/steps/mdx-to-gridtables.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/steps/mdx-to-gridtables.ts b/src/steps/mdx-to-gridtables.ts index 0cf40a1..1b6c48b 100644 --- a/src/steps/mdx-to-gridtables.ts +++ b/src/steps/mdx-to-gridtables.ts @@ -73,6 +73,9 @@ export default function mdxToBlocks(ctx: Helix.UniversalContext) { const isHorizontalLine = node.name === 'HorizontalLine'; + const isFragment = node.name === 'Fragment'; + + // get slots const slotsAttr = getAttribute(node, 'slots'); const slotsValue = getAttributeValue(slotsAttr, ''); @@ -84,7 +87,7 @@ export default function mdxToBlocks(ctx: Helix.UniversalContext) { // repeat the block N times if repeat="N" is set const repeatAttr = getAttribute(node, 'repeat'); - const repeat = parseInt(getAttributeValue(repeatAttr, '1'), 10); + const repeat = isFragment ? 0 : parseInt(getAttributeValue(repeatAttr, '1'), 10); // get variants as string const variantAttr = getAttribute(node, 'variant');