From 11b55b82c3494e552ee690c3bcba60def6d91949 Mon Sep 17 00:00:00 2001 From: Dennis Jandow <95364200+janthoXO@users.noreply.github.com> Date: Sat, 5 Oct 2024 20:05:43 +0200 Subject: [PATCH] Allow TODO to go over multiple pages (#51) --- utils/todo.typ | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/utils/todo.typ b/utils/todo.typ index 3edbdf0..27193ca 100644 --- a/utils/todo.typ +++ b/utils/todo.typ @@ -1,10 +1,12 @@ -#let TODO(body, color: yellow) = { - rect( - width: 100%, +#let TODO(body, color: yellow, width: 100%, breakable: true) = { + block( + width: width, radius: 3pt, stroke: 0.5pt, fill: color, + inset: 10pt, + breakable: breakable, )[ #body ] -} +} \ No newline at end of file