summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/rich-months-develop.md5
-rw-r--r--packages/markdown/component/Markdown.astro2
2 files changed, 7 insertions, 0 deletions
diff --git a/.changeset/rich-months-develop.md b/.changeset/rich-months-develop.md
new file mode 100644
index 000000000..2f6c63893
--- /dev/null
+++ b/.changeset/rich-months-develop.md
@@ -0,0 +1,5 @@
+---
+'@astrojs/markdown-component': patch
+---
+
+Fix TypeScript error when importing the component
diff --git a/packages/markdown/component/Markdown.astro b/packages/markdown/component/Markdown.astro
index 7e346b4cc..c581c72b0 100644
--- a/packages/markdown/component/Markdown.astro
+++ b/packages/markdown/component/Markdown.astro
@@ -50,4 +50,6 @@ if (content) {
html = htmlContent;
---
+<>
{html ? <Fragment set:html={html} /> : <slot />}
+</>