tui: render assistant markdown with pulldown-cmark (tables, lists, quotes, links)

Tables are drawn as box-drawn grids that wrap to the terminal width,
falling back to header: value lists when too narrow.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
johannesandClaude Sonnet 5.5 committed 2026-11-18 19:24:56 +01:00
1 parent c2800b9554
commit 9614ac32ab
6 files changed
+537 -67

No files matched your search

Generated
+18
View File
@@ -1132,6 +1132,7 @@ dependencies = [
"hx-ai",
"hx-core",
"ignore",
"pulldown-cmark",
"ratatui",
"serde_json",
"similar",
@@ -1958,6 +1959,17 @@ dependencies = [
"unicode-ident",
]
[[package]]
name = "pulldown-cmark"
version = "0.13.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3db2be46835f013dd3f4fa7f5f7402c537787b54ebb6fe2b94bbdd7e2669bb7b"
dependencies = [
"bitflags 2.13.2",
"memchr",
"unicase",
]
[[package]]
name = "quinn"
version = "0.11.12"
@@ -3165,6 +3177,12 @@ version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971"
[[package]]
name = "unicase"
version = "2.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "357cc3acc6a036009fd6c973ed009037c732d60d0b4f6c673e9041497482a28f"
[[package]]
name = "unicode-ident"
version = "1.0.26"