Add API layer, Zustand store, markdown renderer, types

This commit is contained in:
2026-04-25 21:47:51 -04:00
parent cd73b8f059
commit 241acf2b52
4 changed files with 214 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import { marked } from 'marked';
marked.setOptions({
breaks: true,
gfm: true,
});
export function renderMarkdown(text: string): string {
if (!text) return '';
return marked.parse(text) as string;
}