Handle latest typst version breaking changes

* Use the now-required `compile` subcommand in the justfile
* Use the new syntax for enumerated for-loops
This commit is contained in:
Greg Shuflin 2023-04-08 00:06:56 -07:00
parent 73ca8af100
commit 752bbce889
2 changed files with 2 additions and 2 deletions

View File

@ -3,4 +3,4 @@ default:
build-example: build-example:
typst leipzig-gloss-examples.typ typst compile leipzig-gloss-examples.typ

View File

@ -17,7 +17,7 @@
for item_index in range(0, len) { for item_index in range(0, len) {
let args = () let args = ()
for line_idx, formatter in formatters { for (line_idx, formatter) in formatters.enumerate() {
let formatter_fn = if formatter == none { let formatter_fn = if formatter == none {
(x) => x (x) => x
} else { } else {