From 069c127cf07411df15358bd8b55b6c9f1c139e00 Mon Sep 17 00:00:00 2001 From: Rasmus Buurman Date: Mon, 16 Mar 2026 14:53:29 +0100 Subject: [PATCH 1/2] Step global TODO counter when using task(todo) argument --- src/task.typ | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/task.typ b/src/task.typ index d7057bd..d4cfc4a 100644 --- a/src/task.typ +++ b/src/task.typ @@ -147,6 +147,7 @@ if (todo) { c("sheetstorm-todo").step() + c("sheetstorm-global-todo").step() } if theorem-counter-reset { @@ -154,13 +155,9 @@ } let maybe-todo = context { - let curr-task = query(selector().before(here())) - .last() - .location() let curr-task-end = query(selector().after(here())) .first() .location() - let curr-todo-count = c("sheetstorm-todo").at(curr-task-end).first() if (curr-todo-count > 0) { todo-box() } } From 40611d9dbba932012e92ec4c66f49d07d427518c Mon Sep 17 00:00:00 2001 From: Rasmus Buurman Date: Mon, 16 Mar 2026 15:01:53 +0100 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29f527c..3fa4efc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ ## [Unreleased] +### Fixed +- Fixed `todo` option of `task` to propagate globally + ## [0.5.0] - 2026-01-24 ### Breaking