diff --git a/lib.typ b/lib.typ index 268854b..d3a0ff5 100644 --- a/lib.typ +++ b/lib.typ @@ -1,2 +1,6 @@ #import "@preview/gviz:0.1.0": * -#show raw.where(lang: "dot-render"): it => render-image(it.text) + +#let notes-template(doc) = [ + #show raw.where(lang: "dot-render"): it => render-image(it.text) + #doc +] diff --git a/template/main.typ b/template/main.typ index ab6bfbc..5750148 100644 --- a/template/main.typ +++ b/template/main.typ @@ -1 +1,2 @@ #import "@local/notes:0.0.1": * +#show: notes-template