mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-16 19:00:38 +09:00
Revert "Fix markdown editor escaped list markers"
This reverts commit fbcd80948e.
This commit is contained in:
parent
f85f2fbcc2
commit
a4d0901e89
4 changed files with 8 additions and 83 deletions
|
|
@ -4,7 +4,6 @@ import remarkGfm from "remark-gfm";
|
|||
import { parseProjectMentionHref } from "@paperclipai/shared";
|
||||
import { cn } from "../lib/utils";
|
||||
import { useTheme } from "../context/ThemeContext";
|
||||
import { normalizeMarkdownArtifacts } from "../lib/markdown";
|
||||
|
||||
interface MarkdownBodyProps {
|
||||
children: string;
|
||||
|
|
@ -115,7 +114,6 @@ function MermaidDiagramBlock({ source, darkMode }: { source: string; darkMode: b
|
|||
|
||||
export function MarkdownBody({ children, className }: MarkdownBodyProps) {
|
||||
const { theme } = useTheme();
|
||||
const normalizedMarkdown = normalizeMarkdownArtifacts(children);
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
|
|
@ -156,7 +154,7 @@ export function MarkdownBody({ children, className }: MarkdownBodyProps) {
|
|||
},
|
||||
}}
|
||||
>
|
||||
{normalizedMarkdown}
|
||||
{children}
|
||||
</Markdown>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue