Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/web/dashboard/cms/CMSChangelogTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { toast } from "sonner";
import { API_URL } from "../../lib/api";
import { useAuth } from "../../components/core/AuthProvider";
import ReactMarkdown from "react-markdown";
import remarkGfm from "remark-gfm";
import { cn } from "../../lib/utils";

interface ChangelogItem {
Expand Down Expand Up @@ -193,7 +194,7 @@ export default function CMSChangelogTab() {
prose-p:text-muted-foreground prose-p:text-sm
prose-li:text-muted-foreground prose-li:text-sm
">
<ReactMarkdown>{generateMarkdown()}</ReactMarkdown>
<ReactMarkdown remarkPlugins={[remarkGfm]}>{generateMarkdown()}</ReactMarkdown>
</div>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/web/dashboard/cms/CMSPostEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { useAuth } from "../../components/core/AuthProvider";
import { cn } from "../../lib/utils";
import { Post, POST_TYPES, slugify, Revision } from "./cmsTypes";
import ReactMarkdown from "react-markdown";
import remarkGfm from "remark-gfm";

interface CMSPostEditorProps {
post: Partial<Post>;
Expand Down Expand Up @@ -441,7 +442,7 @@ export default function CMSPostEditor({ post: initialPost, onClose, onSave }: CM
prose-headings:italic prose-headings:font-black
prose-code:text-primary prose-code:bg-primary/5 prose-code:px-1.5 prose-code:py-0.5 prose-code:rounded
">
<ReactMarkdown>{formData.content || "_Kein Inhalt_"}</ReactMarkdown>
<ReactMarkdown remarkPlugins={[remarkGfm]}>{formData.content || "_Kein Inhalt_"}</ReactMarkdown>
</div>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/web/pages/BlogPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
Terminal
} from "lucide-react";
import ReactMarkdown from "react-markdown";
import remarkGfm from "remark-gfm";
import { API_URL } from "../lib/api";
import { cn } from "../lib/utils";
import { Navbar } from "../components/layout/Navbar";
Expand Down Expand Up @@ -364,7 +365,7 @@ export default function BlogPage() {
prose-li:text-muted-foreground prose-li:font-medium
prose-blockquote:border-l-4 prose-blockquote:border-primary prose-blockquote:bg-primary/5 prose-blockquote:py-2 prose-blockquote:px-6 prose-blockquote:rounded-r-2xl prose-blockquote:italic
">
<ReactMarkdown>{currentPost.content}</ReactMarkdown>
<ReactMarkdown remarkPlugins={[remarkGfm]}>{currentPost.content}</ReactMarkdown>
</div>

{currentPost.tags && (
Expand Down
Loading