MCPcopy Create free account
hub / github.com/astercloud/aster / renderMarkdown

Function renderMarkdown

ui/src/utils/markdown.ts:16–23  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

14 * 渲染 Markdown 为 HTML
15 */
16export function renderMarkdown(content: string): string {
17 try {
18 return marked.parse(content) as string;
19 } catch (error) {
20 console.error("Markdown render error:", error);
21 return content;
22 }
23}
24
25/**
26 * 提取纯文本(去除 Markdown 标记)

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected