[questions][fix] show line breaks in answers, comments

This commit is contained in:
Jeff Sieu
2022-11-08 02:10:21 +08:00
parent ebc98e85bc
commit e32c7efab2
2 changed files with 2 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ export default function AnswerCard({
Posted on: {format(createdAt, 'h:mm a, MMMM dd, yyyy')}
</p>
</div>
<p>{content}</p>
<p className="whitespace-pre-line">{content}</p>
{commentCount !== undefined && (
<div className="flex items-center gap-2 text-slate-500">
<ChatBubbleLeftRightIcon className="h-6 w-6" />

View File

@@ -44,7 +44,7 @@ export default function CommentListItem({
Posted on: {format(createdAt, 'h:mm a, MMMM dd, yyyy')}
</p>
</div>
<p className="pl-1 pt-1">{content}</p>
<p className="whitespace-pre-line">{content}</p>
</div>
</div>
);