diff --git a/documentation.pdf b/documentation.pdf index f755c07..1ed005f 100644 Binary files a/documentation.pdf and b/documentation.pdf differ diff --git a/documentation.typ b/documentation.typ index af92726..f01158a 100644 --- a/documentation.typ +++ b/documentation.typ @@ -3,8 +3,6 @@ #show link: x => underline[*#x*] -#let codeblock-old(contents) = block(fill: luma(230), inset: 8pt, radius: 4pt, breakable: false, contents) - #let codeblock(contents, addl-bindings: (:), unevaled-first-line: none) = { let full-contents = if unevaled-first-line != none { unevaled-first-line + "\n" + contents @@ -12,8 +10,10 @@ contents } - eval(contents, mode: "markup", scope: (gloss: gloss, numbered-gloss: numbered-gloss) + addl-bindings) - block(fill: luma(230), inset: 8pt, radius: 4pt, breakable: false, raw(full-contents, lang: "typst")) + block(stroke: 0.5pt + black, inset: 4pt, width: 100%, breakable: false)[ + #eval(contents, mode: "markup", scope: (gloss: gloss, numbered-gloss: numbered-gloss) + addl-bindings) + #block(fill: luma(230), inset: 8pt, radius: 4pt, breakable: false, width: 100%, raw(full-contents, lang: "typst")) + ] } // Abbreviations used in this document