From fac434da0ac5533e2b7d70f1756faa5fbfc8b0ba Mon Sep 17 00:00:00 2001 From: Giteabot Date: Thu, 5 Jun 2025 13:48:07 +0800 Subject: [PATCH] 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): Screenshot 2025-06-04 at 14 09 07 After (rendering matches GitHub): Screenshot 2025-06-04 at 14 09 14 Co-authored-by: silverwind --- web_src/css/markup/content.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web_src/css/markup/content.css b/web_src/css/markup/content.css index ace028b4d0..fbb819b55e 100644 --- a/web_src/css/markup/content.css +++ b/web_src/css/markup/content.css @@ -134,6 +134,11 @@ margin-bottom: 16px; } +/* override p:last-child from base.css */ +.markup p:last-child { + margin-bottom: 16px; +} + .markup hr { height: 4px; padding: 0;