added width param to render

This commit is contained in:
2024-06-13 12:02:31 +02:00
parent 8bcedbfc53
commit f061bd964e
2 changed files with 30 additions and 4 deletions

View File

@@ -56,10 +56,10 @@
return structures
}
#let render(structures, config: auto) = {
#let render(structures, width: 100%, config: auto) = {
if config == auto {
config = conf.config()
}
let renderer_ = renderer.make(config)
(renderer_.render)(structures)
(renderer_.render)(structures, width: width)
}