diff --git a/README.md b/README.md index 5a74528..714e14a 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,31 @@ Or to create a new note: typst init @local/notes ``` +## Features + +### Graph + +This package import gviz and can render dot graphs: + +``` +\```dot-render +digraph mygraph { + rankdir="LR"; + b -> a; + a -> c; + c -> b; +} +\``` +``` + +### Todo + +``` +Lorem ipsum dolore #todo[sit] amet +``` + ## TODO: - add new raw type with graphviz boillerplate code - biblio +- add a list of all todo at the end of the file diff --git a/lib.typ b/lib.typ index d3a0ff5..751db1b 100644 --- a/lib.typ +++ b/lib.typ @@ -4,3 +4,7 @@ #show raw.where(lang: "dot-render"): it => render-image(it.text) #doc ] + +#let todo(content) = { + text(weight: "bold", fill: red, [{TODO : #content}]) +} diff --git a/template/main.typ b/template/main.typ index d2775dd..10476de 100644 --- a/template/main.typ +++ b/template/main.typ @@ -9,3 +9,5 @@ digraph mygraph { c -> b; } ``` + +Lorem ipsum dolore #todo[sit] amet