diff options
| author | Lucy-73 <115893318+Lucy-73@users.noreply.github.com> | 2024-04-01 22:50:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-01 20:50:28 +0000 |
| commit | d672080e8517f28e15488210d6d3a5309a981bea (patch) | |
| tree | 56cd49246930e57f94f051a3fa01960f3f77cc0c | |
| parent | 72c5b42a30128c07c83fc9281b705a6c2a139103 (diff) | |
Changed equation reference customization example to include a link (#3812)
| -rw-r--r-- | crates/typst/src/model/reference.rs | 4 |
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 |
