Skip to content

markdown: Fix table header alignment and apply alignment to cell content - #56179

Merged
smitbarmase merged 1 commit into
mainfrom
fix-table-alignment-and-highlight
May 8, 2026
Merged

markdown: Fix table header alignment and apply alignment to cell content#56179
smitbarmase merged 1 commit into
mainfrom
fix-table-alignment-and-highlight

Conversation

@smitbarmase

@smitbarmase smitbarmase commented May 8, 2026

Copy link
Copy Markdown
Member

Follow up: #53465

For Markdown tables, headers are now always centered (ignoring column alignment), matching standard Markdown rendering behavior. For HTML tables, headers default to center but respect explicit align attributes.

This also propagates alignment to paragraphs and headings inside table cells, not just the cell container itself.

Release Notes:

  • N/A

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label May 8, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label May 8, 2026

@agu-z agu-z left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nice

@smitbarmase
smitbarmase added this pull request to the merge queue May 8, 2026
Merged via the queue into main with commit 6151889 May 8, 2026
42 checks passed
@smitbarmase
smitbarmase deleted the fix-table-alignment-and-highlight branch May 8, 2026 15:27
jonx pushed a commit to jonx/zed-aros that referenced this pull request Jul 17, 2026
…ent (zed-industries#56179)

Follow up: zed-industries#53465

For Markdown tables, headers are now always centered (ignoring column
alignment), matching standard Markdown rendering behavior. For HTML
tables, headers default to center but respect explicit `align`
attributes.

This also propagates alignment to paragraphs and headings inside table
cells, not just the cell container itself.

Release Notes:

- N/A
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
…ent (zed-industries#56179)

Follow up: zed-industries#53465

For Markdown tables, headers are now always centered (ignoring column
alignment), matching standard Markdown rendering behavior. For HTML
tables, headers default to center but respect explicit `align`
attributes.

This also propagates alignment to paragraphs and headings inside table
cells, not just the cell container itself.

Release Notes:

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

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants