Skip to content

Commit 65e3566

Browse files
committed
fix(question): render first line with Remark
1 parent 9d60f7b commit 65e3566

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/question/question-card.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { type FragmentType, graphql, readFragment } from "@/gql";
33
import { getQuestionSolvedStatus } from "@/lib/solved-status";
44
import { SwordIcon } from "lucide-react";
55
import Link from "next/link";
6+
import { Remark } from "react-remark";
67
import DifficultyBadge from "./difficulty-badge";
78
import SolvedStatusBadge from "./solved-status-badge";
89

@@ -33,7 +34,9 @@ export default function QuestionCard({
3334
<div className="flex-1 space-y-3 bg-white p-4">
3435
<div>
3536
<h2 className="font-bold tracking-wider">{question.title}</h2>
36-
<p className="tracking-wide">{descriptionFirstLine}</p>
37+
<p className="tracking-wide">
38+
<Remark>{descriptionFirstLine}</Remark>
39+
</p>
3740
</div>
3841
<div className="flex flex-wrap gap-1">
3942
<SolvedStatusBadge solvedStatus={solvedStatus} />

0 commit comments

Comments
 (0)