From 8dbd782c752ed510a11c04527bed974c122e8133 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Thu, 6 Aug 2026 15:25:56 +0530 Subject: [PATCH] fix(theme): remove extra margins from first and last paragraph inside a list element closes #5353 --- src/client/theme-default/styles/components/vp-doc.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/client/theme-default/styles/components/vp-doc.css b/src/client/theme-default/styles/components/vp-doc.css index 86f49bb6..6250685e 100644 --- a/src/client/theme-default/styles/components/vp-doc.css +++ b/src/client/theme-default/styles/components/vp-doc.css @@ -187,6 +187,14 @@ margin: 8px 0 0; } +.vp-doc li > p:first-child { + margin-top: 0; +} + +.vp-doc li > p:last-child { + margin-bottom: 0; +} + .vp-doc li.task-list-item { list-style: none; }