fix a extensibility and test for errors

This commit is contained in:
tristan 2024-01-01 13:48:26 +00:00
parent e76305f71a
commit 3ceb580768
12 changed files with 174 additions and 58 deletions

View file

@ -4,9 +4,9 @@ let
H = n:
let
v = if n < 1 then
builtins.trace "attempted to make heading size ${n} (min is 1)" 1
builtins.trace "attempted to make heading size ${toString n} (min is 1)" 1
else if n > 6 then
builtins.trace "attempted to make heading size ${n} (max is 6)" 6
builtins.trace "attempted to make heading size ${toString n} (max is 6)" 6
else
n;
in html.tag "h${toString v}" { };