Repository navigation
feat(tui): one blank row between blocks, numbered lists, hanging indents, quote rails (U1) - #95
Merged
lg2m merged 2 commits intoSep 21, 2026
Conversation
…nts, quote rails (U1) Slice U1 of docs/plans/tui-redesign.md (ENG-847), stacked on L1. Markdown blocks are now separated by exactly one blank row; ordered lists keep their numbers right-aligned to the widest in the list; bullets are • and ◦, tasks ☐ and ☑; wrapped list rows hang under the item text; the ▎ quote rail repeats on every row; rules span the content width in the border style; H1 is text bold with an underline, H2 accent bold, H3+ text bold. Prose rows no longer end in the whitespace a wrap broke on. A source that ends at a block boundary keeps its trailing gap so the streaming settled prefix still concatenates to the whole message's rows; the existing streaming corpus passes unchanged. Seven new markdown tests; the five markdown-gallery goldens move with the before/after in this diff. Render bench flat against L1.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
U1: one blank row between blocks, numbered lists, hanging indents, quote rails
Spec: docs/plans/tui-redesign.md#s3-markdown-blocks-markdownrs Linear: ENG-847 (parent ENG-843)
Stacked on #94 (L2). Review the top commit only until #94 merges.
What changed (
crates/qq-tui/src/view/markdown.rs)9./10.); a one-pass item count per list sizes the column before items arrive.•/ nested◦inaccent; tasks☐/☑in place of the bullet.Hang { width, rail }; the body wraps atwidth − hangand the prefix repeats.▎inmutedon every row; bodymuteditalic; nested quotes stack rails.─across the content width inborder(was 12 literal dashes).textbold +─underline of title width; H2accentbold; H3–H6textbold.settled_prefix_endconcatenation equals the whole layout; the existing 11-source streaming corpus passes unchanged.Before / after (
markdown-gallery-80x24, excerpt)How verified
cargo test --workspacegreen (qq-tui 265 lib + 5 goldens). Two unrelatedqq-coresession tests panicked once in the full run and pass in isolation and in a clean-p qq-corerun (674/674); not touched by this PR.-D warningsmarkdown/tests.rs:ordered_lists_keep_their_numbers_right_aligned,wrapped_list_items_hang_under_their_text,task_items_use_box_glyphs_without_a_bullet,quotes_carry_the_rail_on_every_wrapped_row,rules_span_the_content_width_in_the_border_style,heading_levels_differ_and_h1_is_underlined,exactly_one_blank_row_separates_every_block_in_the_gallery(also checks the streaming split).markdown-gallery-*only.Measurements
target/qq-perf/tui-U1-2026-09-20/after.txtvs L1:Docs
docs/design/transcript.md§ Spacing amended; new § Markdown Blocks. Ledger receipt.Compatibility