Skip to content

Commit 9910568

Browse files
committed
Fix height of empty lines in code blocks
1 parent 2bac6f3 commit 9910568

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/css/custom.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,8 @@ pre.shiki code:not(:has(.line)) {
103103
padding-left: var(--ifm-pre-padding);
104104
padding-right: var(--ifm-pre-padding);
105105
}
106+
107+
/* enforce monospacing height-wise as well (needed for empty lines) */
108+
pre.shiki div.line {
109+
height: 22px;
110+
}

0 commit comments

Comments
 (0)