.docx export ignores {.unnumbered .unlisted} in headers and prints them in TOC anyway
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 52/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- javascript
- Área
- tooling
Línea de trabajo
Start by rendering the reporter's minimal .qmd with both docx: toc: true and typst: toc: true to confirm that only the Word output lists the {.unnumbered .unlisted} headings. Then compare the two output paths: the Typst writer honours the classes, so find where the docx table of contents is assembled and check whether the heading classes are inspected there at all before entries are emitted. Done means the Word TOC matches the Typst one for the sample document, with ordinary headings still numbered and listed.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I have:
- searched the issue tracker for similar issues
- installed the latest version of Quarto CLI
- formatted my issue following the Bug Reports guide
Bug description
At https://quarto.org/docs/output-formats/ms-word.html#table-of-contents, Quarto docs state that adding {.unnumbered .unlisted} to a heading will exclude it from the MS Word TOC, as it does in typst output. This does not appear to work.
Steps to reproduce
Render the following qmd.
---
title: "A test of the table of contents"
author: "Tester McTestface"
date: today
format:
typst:
toc: true
docx:
toc: true
---
# Part 1
## Section 1
## Section 2
### [some notes] {.unnumbered .unlisted}
# Part 2
## Section 1
### [some more notes] {.unnumbered .unlisted}
Actual behavior
In Typst output, the unnumbered and unlisted headers do not appear in the TOC, as expected. They do appear in the MS Word TOC, however.
Expected behavior
Unnumbered, unlisted headings should not appear in MS Word TOC, per Quarto docs.
Your environment
- IDE: Positron 2026.11.1 build 4
- OS: macOS 14.6
Quarto check output
sam@sam git % quarto check
Quarto 1.11.9
[✓] Checking environment information...
Quarto cache location: /Users/sam/Library/Caches/quarto
Project: none found (single-file mode)
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.10.0: OK
Dart Sass version 1.101.0: OK
Deno version 2.9.8: OK
Typst version 0.15.1: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.11.9
Path: /Applications/quarto/bin
[✓] Checking tools....................OK
TinyTeX: (external install)
Chrome Headless Shell: (not installed)
VeraPDF: (not installed)
[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /Users/sam/Library/TinyTeX/bin/universal-darwin
Version: 2026
[✓] Checking Chrome Headless....................OK
Using: Chrome found on system
Path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
Source: MacOS known location
[✓] Checking basic markdown render....OK
[✓] Checking R installation...........OK
Version: 4.6.1
Path: /Library/Frameworks/R.framework/Resources
LibPaths:
- /Library/Frameworks/R.framework/Versions/4.6/Resources/library
knitr: 1.51
rmarkdown: 2.31
[✓] Checking Knitr engine render......OK
[✓] Checking Python 3 installation....OK
Version: 3.9.6
Path: /Library/Developer/CommandLineTools/usr/bin/python3
Jupyter: (None)
Jupyter is not available in this Python installation.
Install with python3 -m pip install jupyter
[✓] Checking Julia installation...
- Lenguaje dominante
- JavaScript
- Estrellas
- 6.2k
- Forks
- 492
- Merge medio
- 15 h 15 min
- PR fusionados (30 d)
- 94
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de quarto-dev/quarto-cli
-
bootstrap enhancement themes
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
quarto-dev/quarto-cli#15421 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
quarto-dev/quarto-cli#15408 ·
Los mantenedores suelen responder en 1 día
-
accessibility bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
quarto-dev/quarto-cli#15401 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
bug callouts docx regression
Dificultad 2/5 1-3 horas Aptitud para principiantes 81/100
quarto-dev/quarto-cli#15394 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug lightbox
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
quarto-dev/quarto-cli#15393 ·
Los mantenedores suelen responder en 1 día
Todos los issues de quarto-dev/quarto-cli
Issues similares
-
bug help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
LangerSword/gitone#7 ·
-
good first issue reliability security should-have
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 13 días
-
[BUG]: chunkSource protocol stripping truncates URLs or reads an inner schemePosiblemente ocupada @Bensonbenyi la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Mintplex-Labs/anything-llm#7338 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día