# markdown: Improve table cell alignment \(\#53465\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e6b8b30e2218dbe806a2787a668186e5b7130490

Requested commit: e6b8b30e2218dbe806a2787a668186e5b7130490

Commit: e6b8b30e2218dbe806a2787a668186e5b7130490

Tree: b86927a70364b2f937a7a779a9639c0e70350dd8

Author: David Alecrim

Committer: GitHub

## Message

```
markdown: Improve table cell alignment (#53465)

## Summary

Markdown preview tables kept text pinned to the top of a row when a
neighboring cell contained a taller image. This made mixed
text-and-image tables look unbalanced and inconsistent with common
editor behavior. This change makes table text stay visually centered
within taller rows so Markdown tables are easier to scan and match
expected rendering more closely.

## Before / After

| Before | After |
| --- | --- |
| <img width="849" height="869" alt="Screenshot 2026-04-08 at 19 55 50"
src="https://github.com/user-attachments/assets/b3751bff-3750-4ca1-8997-6f5265e4d291"
/> | <img width="898" height="734" alt="Screenshot 2026-04-08 at 21 47
31"
src="https://github.com/user-attachments/assets/d853c0a1-800c-4a2a-aec9-e0ef08453fa7"
/> |

## References
Inspired by comparing this with VS Code preview
<img width="1286" height="878" alt="Screenshot 2026-04-08 at 21 54 06"
src="https://github.com/user-attachments/assets/8dbbfe28-9980-4012-94f1-1b5b3503065b"
/>

Release Notes:

- Improved Markdown preview table cells to vertically center content in
tall rows and respect column alignment from the table header.

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
```

## Parents

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

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