From d672080e8517f28e15488210d6d3a5309a981bea Mon Sep 17 00:00:00 2001 From: Lucy-73 <115893318+Lucy-73@users.noreply.github.com> Date: Mon, 1 Apr 2024 22:50:28 +0200 Subject: [PATCH] Changed equation reference customization example to include a link (#3812) --- crates/typst/src/model/reference.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/typst/src/model/reference.rs b/crates/typst/src/model/reference.rs index 0cdb5e300..511ca3d9a 100644 --- a/crates/typst/src/model/reference.rs +++ b/crates/typst/src/model/reference.rs @@ -77,10 +77,10 @@ use crate::text::TextElem; /// let el = it.element /// if el != none and el.func() == eq { /// // Override equation references. -/// numbering( +/// link(el.location(),numbering( /// el.numbering, /// ..counter(eq).at(el.location()) -/// ) +/// )) /// } else { /// // Other references as usual. /// it