typst level 1 page break

This commit is contained in:
anarsec 2024-04-18 16:54:58 +00:00
parent 8428d86f8b
commit 32784a25be
No known key found for this signature in database
3 changed files with 3 additions and 7 deletions

View file

@ -57,7 +57,6 @@
// set headings
show heading.where(level: 1): it => {
pagebreak(weak: true)
block(width: 100%)[
#set align(center)
#set text(size: 22pt, font: "Jost")
@ -99,7 +98,7 @@
}
}
else if it.dest.starts-with("https://") or it.dest.starts-with("http://") {
footnote[#it.dest.trim("https://", at: start).trim("http://", at: start)]
footnote[#it.dest.trim("https://", at: start).trim("http://", at: start).trim("www.", at: start)]
}
else if it.dest.starts-with("/glossary#") or it.dest.starts-with("/glossary/#") {
context {