aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components/dashboard/bookmarks/BookmarkedTextViewer.tsx
diff options
context:
space:
mode:
authorkamtschatka <simon.schatka@gmx.at>2024-07-15 01:11:27 +0200
committerGitHub <noreply@github.com>2024-07-15 00:11:27 +0100
commit888dad6ec2f3c78676422ad503dcf7ff81507552 (patch)
tree9d1ef3d32b8f7c189cf8ec0b2943e53b8cd18efd /apps/web/components/dashboard/bookmarks/BookmarkedTextViewer.tsx
parentf77a41a75237b8c816e0c9ca7217dfacc32cc7d0 (diff)
downloadkarakeep-888dad6ec2f3c78676422ad503dcf7ff81507552.tar.zst
feature: Add github markdown support which includes tables, checklists and auto links #300 (#302)
added the possibility to add checkboxes
Diffstat (limited to 'apps/web/components/dashboard/bookmarks/BookmarkedTextViewer.tsx')
-rw-r--r--apps/web/components/dashboard/bookmarks/BookmarkedTextViewer.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/web/components/dashboard/bookmarks/BookmarkedTextViewer.tsx b/apps/web/components/dashboard/bookmarks/BookmarkedTextViewer.tsx
index 8a620341..88382cf7 100644
--- a/apps/web/components/dashboard/bookmarks/BookmarkedTextViewer.tsx
+++ b/apps/web/components/dashboard/bookmarks/BookmarkedTextViewer.tsx
@@ -1,5 +1,6 @@
import { Dialog, DialogContent } from "@/components/ui/dialog";
import Markdown from "react-markdown";
+import remarkGfm from "remark-gfm";
export function BookmarkedTextViewer({
content,
@@ -13,7 +14,9 @@ export function BookmarkedTextViewer({
return (
<Dialog open={open} onOpenChange={setOpen}>
<DialogContent className="max-h-[75%] overflow-auto">
- <Markdown className="prose">{content}</Markdown>
+ <Markdown remarkPlugins={[remarkGfm]} className="prose">
+ {content}
+ </Markdown>
</DialogContent>
</Dialog>
);