Some fixes

This commit is contained in:
Gregory Schier
2025-07-07 13:52:54 -07:00
parent 01f9c072a7
commit 7a11da42af
2 changed files with 86 additions and 36 deletions

View File

@@ -3,7 +3,14 @@ import remarkGfm from 'remark-gfm';
import { ErrorBoundary } from './ErrorBoundary';
import { Prose } from './Prose';
export function Markdown({ children, className }: { children: string; className?: string }) {
interface Props {
children: string | null;
className?: string;
}
export function Markdown({ children, className }: Props) {
if (children == null) return null;
return (
<Prose className={className}>
<ErrorBoundary name="Markdown">