Skip to content

term: render Markdown tables without wrapping rows - #16182

Open
fzlzjerry wants to merge 2 commits into
helix-editor:masterfrom
fzlzjerry:fix/11175-markdown-tables
Open

term: render Markdown tables without wrapping rows#16182
fzlzjerry wants to merge 2 commits into
helix-editor:masterfrom
fzlzjerry:fix/11175-markdown-tables

Conversation

@fzlzjerry

Copy link
Copy Markdown

Closes #11175

Markdown tables are now parsed into separate blocks instead of being flattened into the same wrapping Paragraph as surrounding prose. Table blocks reuse the helix-tui table widget, preserve Markdown column alignment, style separators with punctuation.special, and truncate cells when the popup is narrower than the table.

This follows the rendering direction discussed in #12693. The table widget gains aligned cells, styled column separators, compressed-gap handling for narrow areas, and correct offset behavior when there is no selected row. Hover and signature-help sizing and scrolling now use the block-aware Markdown renderer.

Tests cover table parsing and alignment, normal and narrow rendering, compressed separators, unselected table offsets, and scrolling from a table into following Markdown blocks.

Validation:

  • cargo fmt --all -- --check
  • cargo test -p helix-tui
  • HELIX_DISABLE_AUTO_GRAMMAR_BUILD=1 cargo test -p helix-term --lib
  • HELIX_DISABLE_AUTO_GRAMMAR_BUILD=1 cargo clippy -p helix-tui -p helix-term --all-targets -- -D warnings
  • HELIX_DISABLE_AUTO_GRAMMAR_BUILD=1 RUSTDOCFLAGS="-D warnings" cargo doc --no-deps -p helix-tui -p helix-term --document-private-items

Copilot AI lite review requested due to automatic review settings August 13, 2026 16:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bad markdown table format in docs preview (<space-k>)

2 participants