Skip to content

Commit 44e257b

Browse files
HesterGsilverwind
authored andcommitted
Change style to improve whitespaces trimming inside inline markdown code (go-gitea#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 go-gitea#23080.
1 parent e02e752 commit 44e257b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web_src/less/markup/content.less

+1
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@
415415
padding: .2em .4em;
416416
margin: 0;
417417
font-size: 85%;
418+
white-space: break-spaces;
418419
background-color: var(--color-markup-code-block);
419420
border-radius: 4px;
420421
}

0 commit comments

Comments
 (0)