# markdown: Add initial support for tables \(\#25954\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3bec4eb11745ebedb3967e8c4ebda55f1ccbc521

Requested commit: 3bec4eb11745ebedb3967e8c4ebda55f1ccbc521

Commit: 3bec4eb11745ebedb3967e8c4ebda55f1ccbc521

Tree: 97daab63cd5e4bb32ff0281ca390b676b0d17d39

Author: Marshall Bowers

Committer: GitHub

## Message

```
markdown: Add initial support for tables (#25954)

This PR adds initial support for displaying tables to the `markdown`
crate.

This allows us to render tables in Assistant 2:

| Before | After |
|
----------------------------------------------------------------------------------------------------------------------------------------------------
|
----------------------------------------------------------------------------------------------------------------------------------------------------
|
| <img width="1309" alt="Screenshot 2025-03-03 at 1 39 39 PM"
src="https://github.com/user-attachments/assets/ad7ada01-f35d-4fcf-a20c-deb42b55b34e"
/> | <img width="1297" alt="Screenshot 2025-03-03 at 3 38 21 PM"
src="https://github.com/user-attachments/assets/9b771126-30a0-479b-8c29-f5f572936f56"
/> |

There are a few known issues that should be addressed as follow-ups:

- The horizontal scrolling within a table is linked with the scrolling
of the parent container (e.g., the Assistant 2 thread)
- Cells are currently cut off entirely when they are too wide, would be
nice to truncate them with an ellipsis

Release Notes:

- N/A
```

## Parents

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

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