zed/crates/markdown/src
Tim Vermeulen cdf33ac25e
markdown: Auto-size table columns to content width (#61773)
Closes https://github.com/zed-industries/zed/issues/62498
Fixes #50044:

| before | after |
| --- | --- |
| <img width="1260" height="1449" alt="before"
src="https://github.com/user-attachments/assets/84dfca5a-66da-4179-90f3-8408255346d4"
/> | <img width="1260" height="1449" alt="after"
src="https://github.com/user-attachments/assets/d63f9128-1397-4f1a-87a5-4e681e9b65f0"
/> |

~Submitted as a draft PR because it relies on
https://github.com/DioxusLabs/taffy/pull/1001. I temporarily pinned our
`taffy` dependency to that particular branch to make the new tests
pass.~ That fix got released!

This fix is similar to the original fix in #50839 which got partially
reverted by #52864 due to a regression, and
`test_table_never_renders_past_its_available_width` ensures this doesn't
regress again.

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

---

Release Notes:

- Markdown table columns are now sized based on their content.
2026-08-12 17:33:28 +00:00
..
html markdown: Auto-size table columns to content width (#61773) 2026-08-12 17:33:28 +00:00
html.rs markdown_preview: Refactor to use shared markdown crate (#52008) 2026-03-26 12:27:39 +05:30
markdown.rs markdown: Auto-size table columns to content width (#61773) 2026-08-12 17:33:28 +00:00
mermaid.rs markdown: Support triple-tilde Mermaid fences (#62257) 2026-08-10 13:04:37 +00:00
parser.rs markdown: Support triple-tilde Mermaid fences (#62257) 2026-08-10 13:04:37 +00:00
path_range.rs Represent relative paths using a dedicated, separator-agnostic type (#38744) 2025-09-24 18:57:33 -04:00
selection.rs markdown: Improve selection copying to always yield valid markdown (#60657) 2026-07-09 11:05:04 +00:00