Update typst
This commit is contained in:
@@ -3,17 +3,15 @@
|
||||
#show link: underline
|
||||
|
||||
// Code formatting
|
||||
#show raw.where(block: false): box.with(
|
||||
fill: luma(240),
|
||||
inset: (x: 3pt, y: 0pt),
|
||||
outset: (y: 3pt),
|
||||
radius: 2pt,
|
||||
)
|
||||
|
||||
#show raw.where(block: true): block.with(
|
||||
fill: luma(240),
|
||||
inset: 10pt,
|
||||
radius: 4pt,
|
||||
)
|
||||
#show raw.where(block: true): it => { set par(justify: false); grid(
|
||||
columns: (100%, 100%),
|
||||
column-gutter: -100%,
|
||||
block(width: 100%, inset: 1em, for (i, line) in it.text.split("\n").enumerate() {
|
||||
box(width: 0pt, align(right, str(i + 1) + h(2em)))
|
||||
hide(line)
|
||||
linebreak()
|
||||
}),
|
||||
block(radius: 1em, fill: luma(246), width: 100%, inset: 1em, it),
|
||||
)}
|
||||
|
||||
#include "foreword/main.typ"
|
||||
|
||||
Reference in New Issue
Block a user