diff options
author | HesterG | 2023-02-23 20:57:03 +0800 |
---|---|---|
committer | GitHub | 2023-02-23 20:57:03 +0800 |
commit | 3adfc0f02d1440d22934403b8d944218747b9289 (patch) | |
tree | 352901c60f8628dfdafad8ce55bcf145ba3006c2 /web_src | |
parent | dd7d6e3ad0f856d1c5b565df58f800461ccc481d (diff) |
Change style to improve whitespaces trimming inside inline markdown code (#23093)
Given mardown source
```
x ` a` y
x `a ` y
x ` a ` y
```
Render
<img width="1421" alt="2023-02-23 15 33 14"
src="https://user-images.githubusercontent.com/17645053/220844280-a304c788-ac79-4a26-a55a-0db00f2fb3f3.png">
Fixes #23080.
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/less/markup/content.less | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web_src/less/markup/content.less b/web_src/less/markup/content.less index 2a9ca3db5..725a3d988 100644 --- a/web_src/less/markup/content.less +++ b/web_src/less/markup/content.less @@ -415,6 +415,7 @@ padding: .2em .4em; margin: 0; font-size: 85%; + white-space: break-spaces; background-color: var(--color-markup-code-block); border-radius: 4px; } |