Set content of review to the HTML converted markdown
This commit is contained in:
@@ -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>
|
||||
)) }
|
||||
|
||||
Reference in New Issue
Block a user