Open th1j5 opened 6 months ago
Extra examples are welcome! Thank you for the consideration.
I am more hesitant to provide uniform access both to inline and margin notes, since each needs slightly different parameters (i.e. inline notes have a par-break
option, and I am hoping in the future to have more margin-aware options for margin notes).
Since the code to provide this is so short, I'm also happy to merge an example that shows you can use a function like this if you need the unified API.
I use typst drafting as the typst equivalent of todonotes. I'm new to typst, which is why I struggled to get some equivalent functionality, but I think I managed: I'd like to propose to
#note
command, which can switch between the inline & margin variant, with a default to margin. (or if not, also add this to the documentation as an example of working with it...)If you are ok with this, I can send a PR (when I find some time)
A note, defaulting to a margin note:
An example of defining custom todo-commands:
Usage: