Skip to content

Commit 83250f8

Browse files
Fix inline code collapsing spaces (#2330)
* Updated to prevent spaces from collapsing while inside inline code blocks * Added changeset * Add comment Co-authored-by: simurai <[email protected]>
1 parent 7e32a4f commit 83250f8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/forty-swans-dress.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/css': patch
3+
---
4+
5+
Fix collapsing spaces within inline code blocks

src/markdown/code.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
font-size: 85%;
1111
background-color: var(--color-neutral-muted);
1212
border-radius: $border-radius;
13+
white-space: break-spaces; // keeps rendering spaces, but breaks them onto multiple lines
1314

1415
br { display: none; }
1516
}

0 commit comments

Comments
 (0)