import { marked } from 'marked' import DOMPurify from 'dompurify' /** * 消息正文的 Markdown 渲染。 * * ## 为什么需要「先转义再解析」这个顺序 * * 模型输出是**不可信内容** —— 它可能包含 `