Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

1.3 KB
Raw Blame

Disable Implicit CLI Markup Design

历史归档:保留原设计或验收时的记录,不作为当前版本的安装、接口或实现指引。 当前入口见 开发文档;当时的版本、测试结论和未完成事项不追溯改写。

Problem

Rich parses plain string renderables as markup by default. CLI tables, dynamic titles, notices, warnings, and shared output helpers can receive paths, metadata, rules, or service messages containing bracketed text. A malformed closing tag raises MarkupError; a valid tag changes presentation unexpectedly.

Decision

Construct the shared stdout and stderr Rich consoles with markup=False. Plain strings are always treated as literal text, while explicit Rich renderables such as Text, Table, and Panel retain their assigned styles.

Keep the server log panel's explicit Text wrapper so that its renderer remains safe when consumed by a different Rich console.

Commands whose renderers return ordinary strings, including search and find, continue to use Python print() and are unaffected.

Tests

Verify markup-like content renders literally through both shared consoles, through table cells and titles, and through notice output. Verify an explicitly styled Text renderable remains supported.