diff options
author | 2023-05-22 17:52:03 +0000 | |
---|---|---|
committer | 2023-05-22 17:52:03 +0000 | |
commit | 6533cbea874806e08a950fc092a7e4aa395871a0 (patch) | |
tree | 010491d12eb6f7b43d294fc0c37277bbe96b80e7 /packages/integrations/markdoc/components/TreeNode.ts | |
parent | f558a9e2056fc8f2e2d5814e74f199e398159fc4 (diff) | |
download | astro-6533cbea874806e08a950fc092a7e4aa395871a0.tar.gz astro-6533cbea874806e08a950fc092a7e4aa395871a0.tar.zst astro-6533cbea874806e08a950fc092a7e4aa395871a0.zip |
[ci] format
Diffstat (limited to 'packages/integrations/markdoc/components/TreeNode.ts')
-rw-r--r-- | packages/integrations/markdoc/components/TreeNode.ts | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/packages/integrations/markdoc/components/TreeNode.ts b/packages/integrations/markdoc/components/TreeNode.ts index 3f9740af1..e491d1dc9 100644 --- a/packages/integrations/markdoc/components/TreeNode.ts +++ b/packages/integrations/markdoc/components/TreeNode.ts @@ -48,10 +48,14 @@ export const ComponentNode = createComponent({ links = '', scripts = ''; if (Array.isArray(treeNode.collectedStyles)) { - styles = treeNode.collectedStyles.map((style: any) => renderUniqueStylesheet({ - type: 'inline', - content: style, - })).join(''); + styles = treeNode.collectedStyles + .map((style: any) => + renderUniqueStylesheet({ + type: 'inline', + content: style, + }) + ) + .join(''); } if (Array.isArray(treeNode.collectedLinks)) { links = treeNode.collectedLinks |