Skip to content

Commit fac434d

Browse files
GiteaBotsilverwind
andauthored
Fix margin issue in markup paragraph rendering (#34599) (#34606)
Backport #34599 by @silverwind The Fomantic-inherited `p:last-child` rule in base.css interferes with this markdown rendering: ``` 1. a 2. a ``` Before (unequal margin): <img width="143" alt="Screenshot 2025-06-04 at 14 09 07" src="https://github.com/user-attachments/assets/6d6ba5e0-0d84-42e0-a0e4-9e93a59c4d65" /> After (rendering matches GitHub): <img width="181" alt="Screenshot 2025-06-04 at 14 09 14" src="https://github.com/user-attachments/assets/bb81e14e-bc9f-4d52-92d0-f7a17c63070e" /> Co-authored-by: silverwind <[email protected]>
1 parent e18eae7 commit fac434d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

web_src/css/markup/content.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@
134134
margin-bottom: 16px;
135135
}
136136

137+
/* override p:last-child from base.css */
138+
.markup p:last-child {
139+
margin-bottom: 16px;
140+
}
141+
137142
.markup hr {
138143
height: 4px;
139144
padding: 0;

0 commit comments

Comments
 (0)