From 960e85f92da201fe748f2194a3cd178f2a42e1ec Mon Sep 17 00:00:00 2001 From: saicaca Date: Sat, 22 Jun 2024 00:49:30 +0800 Subject: [PATCH] fix: extra empty lines in codeblocks still displayed in some cases --- src/components/misc/Markdown.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/misc/Markdown.astro b/src/components/misc/Markdown.astro index ab6623a..06ddb3c 100644 --- a/src/components/misc/Markdown.astro +++ b/src/components/misc/Markdown.astro @@ -175,7 +175,7 @@ const className = Astro.props.class; margin-right: 1rem width: 1rem color: rgba(255, 255, 255, 0.25) - &:last-child:empty + &:last-child:empty, &:last-child:has(> span:empty:only-child) display: none pre