# markdown_preview: Add max-width setting \(\#59512\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 35e2ef8af5109b6857720880e528c9023db61aea

Requested commit: 35e2ef8af5109b6857720880e528c9023db61aea

Commit: 35e2ef8af5109b6857720880e528c9023db61aea

Tree: 3da8979efff889bebff7eb680dc58a404239e25c

Author: Danilo Leal

Committer: GitHub

## Message

```
markdown_preview: Add max-width setting (#59512)

This PR introduces a markdown preview max-width setting in which we
allow to limit by a given pixel number how wide the content within the
preview tab should go. Before this, content would render edge-to-edge
and if you're reading long markdown docs with no split panes, having it
be full width like that was a horrible reading experience.

So, right now, you can control that through the
`zed://settings/markdown_preview.max_width` setting.

<img width="600" alt="Screenshot 2026-06-18 at 1  24@2x"
src="https://github.com/user-attachments/assets/7f0216e1-e4ac-47f7-975b-5de7a0dd4c6d"
/>

Release Notes:

- Added setting to control max-width of content within the markdown
preview.
```

## Parents

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

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