diff options
author | 2022-07-28 16:00:11 -0400 | |
---|---|---|
committer | 2022-07-28 16:00:11 -0400 | |
commit | c15cb36636320012c7d0c9d6ac8620029da70b0b (patch) | |
tree | 20469d393f08c88f58f5cb7c8495b212cb012380 | |
parent | 84193e3ea18ac93b52f64f59062ea3ad88780d2e (diff) | |
download | astro-c15cb36636320012c7d0c9d6ac8620029da70b0b.tar.gz astro-c15cb36636320012c7d0c9d6ac8620029da70b0b.tar.zst astro-c15cb36636320012c7d0c9d6ac8620029da70b0b.zip |
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
-rw-r--r-- | .changeset/rich-months-develop.md | 5 | ||||
-rw-r--r-- | packages/markdown/component/Markdown.astro | 2 |
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 />} +</> |