From c15cb36636320012c7d0c9d6ac8620029da70b0b Mon Sep 17 00:00:00 2001 From: Erika <3019731+Princesseuh@users.noreply.github.com> Date: Thu, 28 Jul 2022 16:00:11 -0400 Subject: [PATCH] Fix shape of Markdown component to work with the language-server (#4085) * Fix shape of Markdown component to work with the language-server * Add changeset --- .changeset/rich-months-develop.md | 5 +++++ packages/markdown/component/Markdown.astro | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/rich-months-develop.md diff --git a/.changeset/rich-months-develop.md b/.changeset/rich-months-develop.md new file mode 100644 index 0000000000..2f6c63893c --- /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 7e346b4cc9..c581c72b03 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 />} +</>