summaryrefslogtreecommitdiff
path: root/crates/typst-library
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-09-30 11:49:02 +0200
committerLaurenz <laurmaedje@gmail.com>2023-09-30 11:49:02 +0200
commitc97fc5eb55931cfaa93577b1aadc71026269c43d (patch)
treed4edd4b2a8b32421464700fce433847f3841a713 /crates/typst-library
parent0ed84797e857a14a4402b17277ecb6e05d722320 (diff)
Fix dead links
Diffstat (limited to 'crates/typst-library')
-rw-r--r--crates/typst-library/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/typst-library/src/lib.rs b/crates/typst-library/src/lib.rs
index 03e96441..da31409a 100644
--- a/crates/typst-library/src/lib.rs
+++ b/crates/typst-library/src/lib.rs
@@ -44,6 +44,7 @@ fn global(math: Module) -> Module {
/// Defines scoped values that are globally available, too.
fn prelude(global: &mut Scope) {
+ global.reset_category();
global.define("black", Color::BLACK);
global.define("gray", Color::GRAY);
global.define("silver", Color::SILVER);