Compare commits
5 Commits
78eaeca178
...
e78c0f36f1
Author | SHA1 | Date | |
---|---|---|---|
|
e78c0f36f1 | ||
|
226dfe75f8 | ||
|
c3acc895d7 | ||
|
393603ae2d | ||
|
7774532264 |
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
## 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,6 +3,8 @@
|
|||||||
|
|
||||||
#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
|
||||||
@ -10,10 +12,8 @@
|
|||||||
contents
|
contents
|
||||||
}
|
}
|
||||||
|
|
||||||
block(stroke: 0.5pt + black, inset: 4pt, width: 100%, breakable: false)[
|
eval(contents, mode: "markup", scope: (gloss: gloss, numbered-gloss: numbered-gloss) + addl-bindings)
|
||||||
#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(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