Skip to content

Commit 7ea8f7e

Browse files
committed
fix: render sponsor descriptions as markdown
1 parent 0fafedc commit 7ea8f7e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/SponsorCard.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
import { useI18n } from '~/i18n/utils'
33
import Icon from '~/components/Icon.astro'
4+
import Markdown from '~/components/Markdown.astro'
45
56
const { name, description, site, img, tier } = Astro.props
67
const { t } = useI18n(Astro.url.pathname)
@@ -56,7 +57,7 @@ const { t } = useI18n(Astro.url.pathname)
5657
</div>
5758
<h2 class="text-xl font-bold text-neutral-800">{name}</h2>
5859
</div>
59-
<div class="text-base leading-relaxed whitespace-pre-line text-neutral-700" set:html={description} />
60+
<Markdown content={description} />
6061
</div>
6162
<div class="hidden aspect-square h-48 w-48 shrink-0 overflow-hidden rounded-lg bg-neutral-50 p-2 md:block">
6263
<img class="h-full w-full object-contain" src={`./img/partners/${img}`} alt={name} />

0 commit comments

Comments
 (0)