File tree Expand file tree Collapse file tree
apps/app/src/app/(app)/[orgId]/tasks/[taskId]/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33import { SelectAssignee } from '@/components/SelectAssignee' ;
44import { RecentAuditLogs } from '@/components/RecentAuditLogs' ;
5+ import { MarkdownRenderer } from '../automation/[automationId]/components/markdown-renderer/markdown-renderer' ;
56import { useAuditLogs } from '@/hooks/use-audit-logs' ;
67import { useOrganizationMembers } from '@/hooks/use-organization-members' ;
78import { downloadTaskEvidenceZip } from '@/lib/evidence-download' ;
@@ -289,15 +290,21 @@ export function SingleTask({
289290 autoFocus
290291 />
291292 ) : (
292- < Text
293- size = "sm"
294- variant = "muted"
295- as = "p"
293+ // CS-98: descriptions authored in the Framework Editor use markdown
294+ // (bullets, bold, headings). Plain-text rendering with whiteSpace:
295+ // pre-line preserved newlines but showed raw "**" and "- " syntax.
296+ // Render through the shared MarkdownRenderer so the app matches
297+ // what admins see in the editor preview.
298+ < div
296299 onClick = { startEditingDescription }
297- style = { { cursor : 'pointer' , whiteSpace : 'pre-line' } }
300+ className = "text-sm text-muted-foreground cursor-pointer"
298301 >
299- { task . description || 'Add a description...' }
300- </ Text >
302+ { task . description ? (
303+ < MarkdownRenderer content = { task . description } />
304+ ) : (
305+ 'Add a description...'
306+ ) }
307+ </ div >
301308 ) }
302309 </ Stack >
303310
You can’t perform that action at this time.
0 commit comments