trusty_code_tui/render/mod.rs
1//! Pure rendering helpers that turn text into styled ratatui primitives,
2//! independent of [`crate::app::ReplApp`] state.
3//!
4//! Why: DOC-50 §3.1 puts `render/markdown.rs` alongside the widgets as its
5//! own module specifically because these functions (fence detection, table
6//! layout, cell truncation) take plain strings in and `Line`/`Span` out —
7//! they never touch `ReplApp`, so keeping them out of `widgets` (which does
8//! read app state) makes the "this has zero app-state dependency" property
9//! visible from the module boundary, not just from reading each function.
10//!
11//! # Spec References
12//! - [`SPEC-TTUI-03~draft`](../../../docs/specs/DOC-50-tcode-tui-claude-code-clone.md#SPEC-TTUI-03~draft) — §3.1 module layout (`render/markdown.rs`).
13
14pub mod markdown;