From f0340c28f15609251434400175a806f0b51e7f74 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 24 Feb 2023 18:05:36 +0100 Subject: [PATCH] Change style to improve whitespaces trimming inside inline markdown code (#23093) (#23120) Backport #23093 Given mardown source ``` x ` a` y x `a ` y x ` a ` y ``` Render 2023-02-23 15 33 14 Fixes #23080. Co-authored-by: HesterG Co-authored-by: Lunny Xiao --- web_src/less/markup/content.less | 1 + 1 file changed, 1 insertion(+) 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; }