Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/blue-trees-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
"@astrojs/starlight": minor
---

Changes text overflow styling in Markdown content

⚠️ **Potentially breaking change:** This release switches the [`overflow-wrap`](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap) CSS style for common elements to `break-word`. In most cases, there should be little visual impact, but this change can impact how layouts with implicit sizing (such as tables) look, improving legibility in how words wrap.

If you want to preserve the previous styling, you can add the following custom CSS to your site:

```css
p, h1, h2, h3, h4, h5, h6, code {
overflow-wrap: anywhere;
}
```
2 changes: 1 addition & 1 deletion packages/starlight/style/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
h5,
h6,
code {
overflow-wrap: anywhere;
overflow-wrap: break-word;
}

code {
Expand Down