Skip to content

Commit

Permalink
Fix shape of Markdown component to work with the language-server (#4085)
Browse files Browse the repository at this point in the history
* Fix shape of Markdown component to work with the language-server

* Add changeset
  • Loading branch information
Princesseuh authored Jul 28, 2022
1 parent 84193e3 commit c15cb36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/rich-months-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/markdown-component': patch
---

Fix TypeScript error when importing the component
2 changes: 2 additions & 0 deletions packages/markdown/component/Markdown.astro
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ if (content) {
html = htmlContent;
---

<>
{html ? <Fragment set:html={html} /> : <slot />}
</>

0 comments on commit c15cb36

Please sign in to comment.