From 888dad6ec2f3c78676422ad503dcf7ff81507552 Mon Sep 17 00:00:00 2001
From: kamtschatka <simon.schatka@gmx.at>
Date: Mon, 15 Jul 2024 01:11:27 +0200
Subject: feature: Add github markdown support which includes tables,
 checklists and auto links #300 (#302)

added the possibility to add checkboxes
---
 apps/web/components/ui/markdown-component.tsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'apps/web/components/ui/markdown-component.tsx')

diff --git a/apps/web/components/ui/markdown-component.tsx b/apps/web/components/ui/markdown-component.tsx
index f92cb3a3..d567ddb3 100644
--- a/apps/web/components/ui/markdown-component.tsx
+++ b/apps/web/components/ui/markdown-component.tsx
@@ -4,6 +4,7 @@ import { cn } from "@/lib/utils";
 import Markdown from "react-markdown";
 import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
 import { dracula } from "react-syntax-highlighter/dist/cjs/styles/prism";
+import remarkGfm from "remark-gfm";
 
 function PreWithCopyBtn({ className, ...props }: React.ComponentProps<"pre">) {
   const ref = React.useRef<HTMLPreElement>(null);
@@ -27,6 +28,7 @@ export function MarkdownComponent({
 }) {
   return (
     <Markdown
+      remarkPlugins={[remarkGfm]}
       className="prose dark:prose-invert"
       components={{
         pre({ ...props }) {
-- 
cgit v1.2.3-70-g09d2

