on git build release mode add some todos
Some checks failed
Build Typst document / build_typst_documents (push) Failing after 10s
Some checks failed
Build Typst document / build_typst_documents (push) Failing after 10s
This commit is contained in:
10
utils.typ
10
utils.typ
@ -1,11 +1,15 @@
|
||||
#let inwriting = false
|
||||
#let draft = false
|
||||
#import "@preview/drafting:0.2.1": margin-note
|
||||
|
||||
#let inp = sys.inputs
|
||||
|
||||
#let inwriting = inp.at("inwriting", default: "true") == "true"
|
||||
#let draft = inp.at("draft", default: "true") == "true"
|
||||
|
||||
#assert(not(inwriting and not(draft)), message: "If inwriting is true, draft should be true as well.")
|
||||
|
||||
#let todo(it) = [
|
||||
#if inwriting [
|
||||
#text(size: 0.8em)[#emoji.pencil] #text(it, fill: red, weight: 600)
|
||||
#margin-note(it)
|
||||
]
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user