quarto-dev / quarto-dev/quarto-cli

In Typst output, Quarto doesn't add identifier as label if `.unlisted` or `.unnumbered` is present as Pandoc does

Open
#13,698 1 comment 0 reactions 1 assignee View on GitHub

@cderv is already working on this.

Since Nov 17, 2025.

enhancement typst
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Discussed in https://github.com/orgs/quarto-dev/discussions/13697

Originally posted by the-solipsist November 17, 2025

Description

Quarto support Pandoc's header_attributes. But if .unnumbered or .unlisted is used, then the identifier doesn't get applied as a Typst label.

## Funding {#frontmatter .unnumbered .unlisted}
{{< lipsum 1 >}}

// no  label

# Introduction {#intro}
{{< lipsum 3 >}}

// label: <intro>

## H2: Main Section
{{< lipsum 3 >}}

// label: <h2-main-section>
#block[
#heading(
level: 
2
, 
numbering: 
none
, 
outlined: 
false
, 
[
Funding
]
)
]
...
= Introduction
<intro>
...
== H2: Main Section
<h2-main-section>

Further details:

❯ quarto --version
1.8.25
❯ lsb_release -a
LSB Version:	n/a
Distributor ID:	EndeavourOS
Description:	EndeavourOS Linux
Release:	rolling
Codename:	rolling
```</div>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.