add: comment to figure.typ prepend

This commit is contained in:
agryphus 2026-04-29 00:39:19 -04:00
parent 03d3a31d71
commit e96b613f43

View file

@ -1,3 +1,7 @@
// Given a figure with an image, this show rule will wrap the image in a link
// that goes to the full version of the pic. For example, image("bird.jpg")
// will get wrapped in a #link("bird_full.jpg"). This, of course, assumes
// bird_full.jpg also exists in the directory.
#show figure: it => { #show figure: it => {
if it.body.func() == image { if it.body.func() == image {
let src = it.body.source let src = it.body.source