Set content of review to the HTML converted markdown

This commit is contained in:
itsfinniii
2026-03-25 22:15:27 +01:00
parent 0f05090b99
commit d2c04d58f2

View File

@@ -1,4 +1,5 @@
---
import { markdownToHtml } from '@/lib/markdown';
import StarRating from './subcomponents/StarRating.astro';
interface Props {
@@ -41,8 +42,7 @@ const reviewsToShow = reviews.reviews.slice(0, 5);
</div>
</div>
<div>
{ review.review }
<div set:html={markdownToHtml(review.review)}>
</div>
</div>
)) }