返回 2026-07-17
🛠 工具 / 开源

将 Mermaid 转换为 Unicode 盒图 (grok-mermaid)Mermaid to Unicode box art (grok-mermaid)

simonwillison.net·2026-07-16 节选正文

Simon Willison 在探索新开源的 Grok CLI 代码库时,发现了一个名为 `mermaid.rs` 的自包含终端工具。该工具能够将 Mermaid 图表语法转换为 Unicode 盒图,以便在纯文本终端环境中直接渲染和显示流程图。这展示了 AI CLI 工具在终端可视化方面的一个实用技术细节。

Simon Willison

16th July 2026

Tool Mermaid to Unicode box art (grok-mermaid)

While exploring the codebase for the newly open-sourced Grok CLI coding agent I came across xai-grok-markdown/src/mermaid.rs, a "self-contained terminal renderer for Mermaid diagrams" written in Rust.

I figured it would be fun to try that out in a browser via WebAssembly. Here's the prompt I ran in Claude Code for web (Fable 5), and this is what the resulting tool looks like:

Posted 16th July 2026 at 12:33 am

需要完整排版与评论请前往来源站点阅读。