Major changes

This commit is contained in:
owenqwenstarsky
2026-01-24 16:52:19 -06:00
parent 011e40119d
commit 7181791734
46 changed files with 8371 additions and 127 deletions
+27
View File
@@ -0,0 +1,27 @@
'use client';
import ReactMarkdown from 'react-markdown';
import remarkGfm from 'remark-gfm';
interface EditorPreviewProps {
content: string;
}
export function EditorPreview({ content }: EditorPreviewProps) {
// If content is empty, show placeholder
if (!content.trim()) {
return (
<div className="article-content editor-preview-content editor-preview-empty">
<p>Start typing to see the preview...</p>
</div>
);
}
return (
<div className="article-content editor-preview-content">
<ReactMarkdown remarkPlugins={[remarkGfm]}>
{content}
</ReactMarkdown>
</div>
);
}