From 5cfc78ef651669c45d8717eceb844cb1d4d14206 Mon Sep 17 00:00:00 2001 From: saicaca Date: Fri, 21 Jun 2024 19:27:16 +0800 Subject: [PATCH] fix: hide the extra empty line in code blocks --- src/components/misc/Markdown.astro | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/misc/Markdown.astro b/src/components/misc/Markdown.astro index 2e35a56..7552049 100644 --- a/src/components/misc/Markdown.astro +++ b/src/components/misc/Markdown.astro @@ -90,6 +90,8 @@ const className = Astro.props.class; margin-right: 1rem width: 1rem color: rgba(255, 255, 255, 0.25) + &:last-child:empty + display: none pre background: var(--codeblock-bg) !important