Compare commits
5 Commits
e78c0f36f1
...
78eaeca178
Author | SHA1 | Date | |
---|---|---|---|
|
78eaeca178 | ||
|
f03b69fb5f | ||
|
d420851864 | ||
|
225c53929b | ||
|
705dc665fc |
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
## 0.3.0
|
## 0.3.0
|
||||||
* Added `label` and `label-supplement` arguments to `gloss` function
|
* Added `label` and `label-supplement` arguments to `gloss` function
|
||||||
|
* Added borders around code + rendered example in documentation pdf
|
||||||
|
|
||||||
## 0.2.0
|
## 0.2.0
|
||||||
* renamed `numbered_gloss` to `numbered-gloss`, `gloss_count` to `gloss-count`, in light of the
|
* renamed `numbered_gloss` to `numbered-gloss`, `gloss_count` to `gloss-count`, in light of the
|
||||||
|
Binary file not shown.
@ -3,8 +3,6 @@
|
|||||||
|
|
||||||
#show link: x => underline[*#x*]
|
#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 codeblock(contents, addl-bindings: (:), unevaled-first-line: none) = {
|
||||||
let full-contents = if unevaled-first-line != none {
|
let full-contents = if unevaled-first-line != none {
|
||||||
unevaled-first-line + "\n" + contents
|
unevaled-first-line + "\n" + contents
|
||||||
@ -12,8 +10,10 @@
|
|||||||
contents
|
contents
|
||||||
}
|
}
|
||||||
|
|
||||||
eval(contents, mode: "markup", scope: (gloss: gloss, numbered-gloss: numbered-gloss) + addl-bindings)
|
block(stroke: 0.5pt + black, inset: 4pt, width: 100%, breakable: false)[
|
||||||
block(fill: luma(230), inset: 8pt, radius: 4pt, breakable: false, raw(full-contents, lang: "typst"))
|
#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
|
// Abbreviations used in this document
|
||||||
|
Loading…
Reference in New Issue
Block a user