Skip to content

Commit

Permalink
Fix inline code collapsing spaces (#2330)
Browse files Browse the repository at this point in the history
* Updated to prevent spaces from collapsing while inside inline code blocks

* Added changeset

* Add comment

Co-authored-by: simurai <simulus@gmail.com>
  • Loading branch information
stevenlaidlaw and simurai committed Nov 30, 2022
1 parent 7e32a4f commit 83250f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/forty-swans-dress.md
@@ -0,0 +1,5 @@
---
'@primer/css': patch
---

Fix collapsing spaces within inline code blocks
1 change: 1 addition & 0 deletions src/markdown/code.scss
Expand Up @@ -10,6 +10,7 @@
font-size: 85%;
background-color: var(--color-neutral-muted);
border-radius: $border-radius;
white-space: break-spaces; // keeps rendering spaces, but breaks them onto multiple lines

br { display: none; }
}
Expand Down

0 comments on commit 83250f8

Please sign in to comment.