summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorLucy-73 <115893318+Lucy-73@users.noreply.github.com>2024-04-01 22:50:28 +0200
committerGitHub <noreply@github.com>2024-04-01 20:50:28 +0000
commitd672080e8517f28e15488210d6d3a5309a981bea (patch)
tree56cd49246930e57f94f051a3fa01960f3f77cc0c /crates
parent72c5b42a30128c07c83fc9281b705a6c2a139103 (diff)
Changed equation reference customization example to include a link (#3812)
Diffstat (limited to 'crates')
-rw-r--r--crates/typst/src/model/reference.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst/src/model/reference.rs b/crates/typst/src/model/reference.rs
index 0cdb5e30..511ca3d9 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