feat: ai's first take...

This commit is contained in:
2026-02-26 00:17:23 +08:00
parent f005514f56
commit 3c9cf552e5
21 changed files with 4001 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import { Marked } from 'marked';
import { createDirectives } from 'marked-directive';
// 使用 marked-directive 来支持通过 @solidjs/element 添加的 UI 组件
const marked = new Marked().use(createDirectives());
export function parseMarkdown(content: string): string {
return marked.parse(content) as string;
}
export { marked };