fix: hide the extra empty line in code blocks

This commit is contained in:
saicaca 2024-06-21 19:27:16 +08:00
parent 03d88af14e
commit 5cfc78ef65
1 changed files with 2 additions and 0 deletions

View File

@ -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