From e28dd2d24f3cf3a9de4646f64e79e632051cf71f Mon Sep 17 00:00:00 2001
From: Flavio <flvb86@gmail.com>
Date: Mon, 21 Oct 2024 22:10:26 +0200
Subject: [PATCH] Fix caption

---
 my-outline.typ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/my-outline.typ b/my-outline.typ
index 82e27d5..a3c1a39 100644
--- a/my-outline.typ
+++ b/my-outline.typ
@@ -92,7 +92,7 @@
     [
       #set text(size: textSize)
       #box(width: 0.75cm, align(right, [#it.body.at("children").at(2) #h(0.2cm)]))
-      #link(it.element.location(), it.body.at("children").at(4))
+      #link(it.element.location(), it.element.at("caption").body)
       #box(width: 1fr, repeat(text(weight: "regular")[. #h(4pt)])) 
       #link(it.element.location(),heading_page)
     ]