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';
|
import StarRating from './subcomponents/StarRating.astro';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
@@ -41,8 +42,7 @@ const reviewsToShow = reviews.reviews.slice(0, 5);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div set:html={markdownToHtml(review.review)}>
|
||||||
{ review.review }
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)) }
|
)) }
|
||||||
|
|||||||
Reference in New Issue
Block a user