# markdown: Fix table header alignment and apply alignment to cell content \(\#56179\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/6151889ddfc70758f4e45bf52e858601d39f2165)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 6151889ddfc70758f4e45bf52e858601d39f2165

Requested commit: 6151889ddfc70758f4e45bf52e858601d39f2165

Commit: 6151889ddfc70758f4e45bf52e858601d39f2165

Tree: fb6c6c11f83d5027e28cff9bc476862d9d9c4d5e

Author: Smit Barmase

Committer: GitHub

## Message

```
markdown: Fix table header alignment and apply alignment to cell content (#56179)

Follow up: https://github.com/zed-industries/zed/pull/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
```

## Parents

- [b8c3167a9de7dca14f4b3a2943dcfadd0ec5fe7a](https://git.cafe/gitcafe/zed/commit/b8c3167a9de7dca14f4b3a2943dcfadd0ec5fe7a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/6151889ddfc70758f4e45bf52e858601d39f2165?format=markdown)
