good
This commit is contained in:
15
lib.typ
Normal file
15
lib.typ
Normal file
@@ -0,0 +1,15 @@
|
||||
#let callout(kind: str, label: str, body) = html.section(class: kind + " callout", context {
|
||||
let depth = counter(heading).at(here()).len() + 1
|
||||
heading(
|
||||
depth: depth,
|
||||
outlined: false,
|
||||
numbering: none,
|
||||
label,
|
||||
)
|
||||
" "
|
||||
body
|
||||
})
|
||||
|
||||
#let note = callout.with(kind: "note", label: "Note:")
|
||||
#let warn = callout.with(kind: "warn", label: "Warning:")
|
||||
#let tip = callout.with(kind: "tip", label: "Tip:")
|
||||
Reference in New Issue
Block a user