added support for colored ranges

This commit is contained in:
2024-06-14 11:20:32 +02:00
parent 4b33ab4a56
commit b7e1db1dbd
5 changed files with 55 additions and 31 deletions

View File

@@ -55,13 +55,16 @@
id = str(id)
structures.insert(id, structure.load(id, data))
}
return structures
return (
structures: structures,
colors: schema.at("colors", default: (:))
)
}
#let render(structures, width: 100%, config: auto) = {
#let render(schema, width: 100%, config: auto) = {
if config == auto {
config = conf.config()
}
let renderer_ = renderer.make(config)
(renderer_.render)(structures, width: width)
(renderer_.render)(schema, width: width)
}