Skip to content

Commit

Permalink
fix: raw function
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed Jul 19, 2024
1 parent 84028c2 commit 67f0c8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion typ/templates/page.typ
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@


show <typst-raw-func>: it => {
it.lines.at(0).body.children.slice(0, -2).join()
let children = it.lines.at(0).body.children
let rb = children.position(e => e.at("text", default: none) == "(")
children.slice(0, rb).join()
}


Expand Down

0 comments on commit 67f0c8b

Please sign in to comment.