keep the inline part of note when draft=false
This commit is contained in:
parent
184c03b204
commit
5724072e51
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue