diff --git a/components/backlog/story-dialog.tsx b/components/backlog/story-dialog.tsx
index dbaac20..724f430 100644
--- a/components/backlog/story-dialog.tsx
+++ b/components/backlog/story-dialog.tsx
@@ -1,6 +1,7 @@
'use client'
import { useEffect, useRef, useState, useTransition } from 'react'
+import { Markdown } from '@/components/markdown'
import { useActionState } from 'react'
import { useFormStatus } from 'react-dom'
import { toast } from 'sonner'
@@ -231,7 +232,7 @@ export function StoryDialog({ state, onClose, isDemo = false }: StoryDialogProps
{story?.description && (
Omschrijving
-
{story.description}
+
{story.description}
)}
{story?.acceptance_criteria && (
diff --git a/components/markdown.tsx b/components/markdown.tsx
new file mode 100644
index 0000000..2b07fa8
--- /dev/null
+++ b/components/markdown.tsx
@@ -0,0 +1,21 @@
+import ReactMarkdown from 'react-markdown'
+import remarkGfm from 'remark-gfm'
+import { cn } from '@/lib/utils'
+
+interface MarkdownProps {
+ children: string
+ className?: string
+}
+
+export function Markdown({ children, className }: MarkdownProps) {
+ return (
+
+
+ {children}
+
+
+ )
+}
diff --git a/components/solo/task-detail-dialog.tsx b/components/solo/task-detail-dialog.tsx
index 8298570..5757393 100644
--- a/components/solo/task-detail-dialog.tsx
+++ b/components/solo/task-detail-dialog.tsx
@@ -3,8 +3,7 @@
import { useRef, useState, useTransition } from 'react'
import Link from 'next/link'
import { toast } from 'sonner'
-import ReactMarkdown from 'react-markdown'
-import remarkGfm from 'remark-gfm'
+import { Markdown } from '@/components/markdown'
import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@/components/ui/dialog'
import { Badge } from '@/components/ui/badge'
import { Button } from '@/components/ui/button'
@@ -134,14 +133,7 @@ function TaskDetailContent({ task, productId, isDemo, onClose }: TaskDetailConte
{task.description && (
Beschrijving
-
-
- {task.description}
-
-
+
{task.description}
)}