feat: cleaner api rendering

This commit is contained in:
TrèsAbhi committed 2026-03-15 23:23:29 -05:00
1 parent a7bd671309
commit 8b01b7c192
11 files changed
+143 -25

No files matched your search

@@ -0,0 +1,5 @@
.markdown {
display: flex;
flex-direction: column;
gap: var(--space-4);
}
@@ -0,0 +1,21 @@
import Markdown from "react-markdown";
import { Text } from "../Text";
import styles from "./index.module.css";
interface Props {
body: string;
}
export function MarkdownCustom({ body }: Props) {
return (
<div className={styles.markdown}>
<Markdown
components={{
p: Text,
}}
>
{body}
</Markdown>
</div>
);
}