keep the inline part of note when draft=false

This commit is contained in:
Jean-Marie Mineau 2025-09-05 10:16:02 +02:00
parent 184c03b204
commit 5724072e51
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2

View file

@ -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
}
}
}