Skip to content

Typst writer regression: Link with label isn't rendered in PDF #11194

@TuongNM

Description

@TuongNM

With a markdown file like this:

[GitHub](https://github.com)

If you try to create a PDF via typst with pandoc 3.8 or 3.8.1 from it with:

pandoc link.md -t typst -o link.pdf

the resulting PDF doesn't contain the link. Doing the same with pandoc 3.7.0.2 produces a PDF with the link as expected.

After digging around, it turns out that the template changes in 6070ad2 caused this, specifically these lines:

show link: this => {
if filecolor != none and type(this.dest) == label {
text(this, fill: rgb(content-to-string(filecolor)))
}
}

I don't know what the issue with these lines is but removing them produces a PDF with the link again.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions