mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2026-04-02 18:38:22 +08:00
[questions][fix] show line breaks in answers, comments
This commit is contained in:
@@ -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" />
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user