summaryrefslogtreecommitdiff
path: root/packages/integrations/markdoc/components/RenderNode.astro
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/markdoc/components/RenderNode.astro')
-rw-r--r--packages/integrations/markdoc/components/RenderNode.astro30
1 files changed, 0 insertions, 30 deletions
diff --git a/packages/integrations/markdoc/components/RenderNode.astro b/packages/integrations/markdoc/components/RenderNode.astro
deleted file mode 100644
index a683cd983..000000000
--- a/packages/integrations/markdoc/components/RenderNode.astro
+++ /dev/null
@@ -1,30 +0,0 @@
----
-import stringifyAttributes from 'stringify-attributes';
-import type { AstroNode } from './astroNode';
-
-type Props = {
- node: AstroNode;
-};
-
-const Node = (Astro.props as Props).node;
----
-
-{
- typeof Node === 'string' ? (
- <Fragment set:text={Node} />
- ) : 'component' in Node ? (
- <Node.component {...Node.props}>
- {Node.children.map((child) => (
- <Astro.self node={child} />
- ))}
- </Node.component>
- ) : (
- <Fragment>
- <Fragment set:html={`<${Node.tag} ${stringifyAttributes(Node.attributes)}>`} />
- {Node.children.map((child) => (
- <Astro.self node={child} />
- ))}
- <Fragment set:html={`</${Node.tag}>`} />
- </Fragment>
- )
-}