AI 工具2026-05-10 16:00·Simon Willison's Weblog + Claude Code 团队

Claude Code 团队倡导 HTML 替代 Markdown 作为 AI 输出格式:更丰富的表达能力

Claude Code 团队成员 Thariq Shihipar 发文倡导用 HTML 而非 Markdown 作为 AI 输出格式。HTML 支持 SVG 图表、交互式组件、内嵌导航等丰富能力,让 AI 的解释更加直观易读。Simon Willison 深受启发,已用 GPT-5.5 测试 HTML 富文本输出效果。

为什么 Claude Code 团队建议用 HTML 替代 Markdown?

2026 年 5 月 8 日,Simon Willison 引用了 Claude Code 团队成员 Thariq Shihipar 的博文「The Unreasonable Effectiveness of HTML」。

核心论点

Thariq 认为,向 Claude 请求输出时,HTML 比 Markdown 强大得多

  • SVG 图表:直接在输出中嵌入可视化图表
  • 交互式组件:可折叠区域、标签页、可展开代码块
  • 内嵌导航:长文档的目录和锚点导航
  • 颜色编码:按严重程度标记不同发现
  • 内联注释:代码差异的行内注解

实用 Prompt 示例

Help me review this PR by creating an HTML artifact that describes it. Focus on the streaming/backpressure logic. Render the actual diff with inline margin annotations, color-code findings by severity.

Simon Willison 的实验

Simon 用 GPT-5.5 测试了 HTML 富文本输出:让 GPT 解释一个 Linux 安全漏洞(copy.fail),生成的 HTML 页面包含交互式代码展开、彩色标记的关键步骤和清晰的分层解释。

为什么是现在?

Markdown 的 token 效率在 GPT-4 时代(8192 token 限制)是必要的,但如今上下文窗口大幅扩展,HTML 的表达优势远超其 token 开销。

来源: Simon Willison's Weblog + Claude Code 团队
链接: https://simonwillison.net/2026/May/8/unreasonable-effectiveness-of-html/