summaryrefslogtreecommitdiff
path: root/packages/integrations/markdoc/components/TreeNode.ts
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2023-05-22 17:52:03 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2023-05-22 17:52:03 +0000
commit6533cbea874806e08a950fc092a7e4aa395871a0 (patch)
tree010491d12eb6f7b43d294fc0c37277bbe96b80e7 /packages/integrations/markdoc/components/TreeNode.ts
parentf558a9e2056fc8f2e2d5814e74f199e398159fc4 (diff)
downloadastro-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.ts12
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