From da086db982b38001ae2a2245525ab3cd6d2c1c0d Mon Sep 17 00:00:00 2001 From: Jiang Bohan Date: Tue, 31 Mar 2026 16:49:03 +0800 Subject: [PATCH] fix(issues): render comments with Markdown to enable issue mention cards Comment body was using RichTextEditor in read-only mode which doesn't support IssueMentionCard rendering. Switch to Markdown component so mention://issue/ links render as rich cards with status + title. --- apps/web/features/issues/components/comment-card.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web/features/issues/components/comment-card.tsx b/apps/web/features/issues/components/comment-card.tsx index 2bea2dda..2967f182 100644 --- a/apps/web/features/issues/components/comment-card.tsx +++ b/apps/web/features/issues/components/comment-card.tsx @@ -20,6 +20,7 @@ import { cn } from "@/lib/utils"; import { useActorName } from "@/features/workspace"; import { timeAgo } from "@/shared/utils"; import { RichTextEditor, type RichTextEditorRef } from "@/components/common/rich-text-editor"; +import { Markdown } from "@/components/markdown"; import { ReplyInput } from "./reply-input"; import type { TimelineEntry } from "@/shared/types"; @@ -164,7 +165,7 @@ function CommentRow({ ) : ( <>
- + {entry.content ?? ""}
{!isTemp && (
- + {entry.content ?? ""}
{!isTemp && (