use styled components and improve error handling

This commit is contained in:
tristan 2023-12-31 04:27:09 +00:00
parent 9d0d54c2e4
commit 29f79c67d8
10 changed files with 117 additions and 86 deletions

View file

@ -18,7 +18,7 @@ in rec {
else builtins.stringLength (builtins.elemAt m 0);
in
if m == null
then elems.p block
then elems.p {} block
else elems.h h (builtins.elemAt m 1);
heading = block: builtins.match "(#+) (.*)" block;