From 9d452f801de75d509d78497c5523498c478203cc Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 4 Oct 2025 19:25:34 +0200 Subject: [PATCH] Typst template: fix 3.8 regression in which links disappear. A template change in 3.8 added a show rule for links which causes them to disappear except in special cases. This change fixes the problem. Closes #11194. --- data/templates/template.typst | 2 ++ test/writer.typst | 2 ++ 2 files changed, 4 insertions(+) diff --git a/data/templates/template.typst b/data/templates/template.typst index eec6d8261..749ecb007 100644 --- a/data/templates/template.typst +++ b/data/templates/template.typst @@ -67,6 +67,8 @@ show link: this => { if filecolor != none and type(this.dest) == label { text(this, fill: rgb(content-to-string(filecolor))) + } else { + text(this) } } diff --git a/test/writer.typst b/test/writer.typst index 8b30a3bf5..4e3b4a56e 100644 --- a/test/writer.typst +++ b/test/writer.typst @@ -91,6 +91,8 @@ show link: this => { if filecolor != none and type(this.dest) == label { text(this, fill: rgb(content-to-string(filecolor))) + } else { + text(this) } }