typst format links

This commit is contained in:
anarsec 2024-11-22 14:47:59 -05:00
parent 4854035341
commit fc9d9acf2b
No known key found for this signature in database

View file

@ -103,20 +103,20 @@
outline(indent: 20pt, depth: 2) outline(indent: 20pt, depth: 2)
// format links // format links
#if lang == "en" [ let before = ""
#let before = "" let after = ""
#let after = "" let rec = ""
] else [ if lang != "en" {
#let before = "/" + lang before = "/" + lang
#let after = lang + "/" after = lang + "/"
] }
#if lang == "en" [ if lang == "en" {
#let rec = "Appendix: Recommendations" rec = "Appendix: Recommendations"
] }
#if lang == "fr" [ if lang == "fr" {
#let rec = "Annexe: Recommendations" rec = "Annexe: Recommendations"
] }
let glossaryFootnote = state("x", [#footnote[anarsec.guide/glossary]<glossary-footnote>]) let glossaryFootnote = state("x", [#footnote[anarsec.guide/glossary]<glossary-footnote>])
show link: it => { show link: it => {
it.body it.body
if type(it.dest) == "string" { if type(it.dest) == "string" {