Feat: add background color for code blocks

This commit is contained in:
2025-04-14 09:12:44 +08:00
parent bc97b8bb81
commit 2d79994f43

View File

@@ -31,10 +31,18 @@
) )
// Code section default // Code section default
show raw: set text( show raw: self => {
set text(
font: "Consolas", font: "Consolas",
size: 8pt size: 8pt
) )
block(
fill: luma(240),
inset: 8pt,
radius: 2pt,
self
)
}
{ // Title { // Title
set align(center) set align(center)