Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/steps/mdx-to-gridtables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, '');
Expand All @@ -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');
Expand Down
Loading