From 5724072e5147af999ca8774c3d63f09b25d68fa6 Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Fri, 5 Sep 2025 10:16:02 +0200 Subject: [PATCH] keep the inline part of note when draft=false --- lib/todos.typ | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/todos.typ b/lib/todos.typ index f5042bf..0b8e58f 100644 --- a/lib/todos.typ +++ b/lib/todos.typ @@ -18,6 +18,17 @@ #let note(body, dy: auto, ..kwargs) = context { if show-notes.get() { margin-note(body, dy: dy, ..kwargs) + } else { + // If this is a line about smth, keep showing the inline part + let phrase = none + if kwargs.pos().len() > 0 { + // margin note: kwargs.pos().at(0) + // inline note: body + phrase = body + } + if phrase != none { + phrase + } } }