A template partial is rejected when the page has `title-block-style: none`
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 68/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- javascript
- Bereich
- backend
Rechercherichtung
Start in src/command/render/pandoc.ts, where the issue locates the partial validation, and trace how the accepted partial list changes with title-block-style. Reproduce with the supplied Quarto document, then check the render behavior for title-block-style: none and the default style. Done means the render succeeds when the declared partial is unused under that style, while preserving use of the partial where supported.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
template-partials accepts a partial only when its name is in the list of partials of the page.
That list depends on title-block-style.
With the default style, title-metadata.html is in the list.
With title-block-style: none, it is not, so the render fails, although nothing else is wrong.
This hits extensions.
An extension that ships title-metadata.html in the template-partials of its html format breaks every page that turns the title block off.
There is no way to make the partial optional.
Related: #14793 (validation does not catch unused partials) and #14794 (the docs do not list the title block partials).
Here the validation is too strict instead: it refuses a partial that Quarto accepts under another title-block-style.
Steps to reproduce
````qmd
---
title: "Title"
title-block-style: none
format:
html:
template-partials:
- title-metadata.html
---
Text.
````
title-metadata.html can hold any HTML, for example <p class="custom-meta">custom</p>.
Without the title-block-style: none line, the same document renders and the partial is used.
Actual behavior
ERROR: The format 'html' only supports the following partials:
metadata.html
title-block.html
toc.html
styles.html
Please provide one or more of these partials.
The check is in src/command/render/pandoc.ts: it needs at least one user partial whose name is in the partials of the format, and for this style title-metadata.html is not among them.
Expected behavior
The render succeeds and ignores the partial, as it does for a partial that the template never calls (#14793).
Your environment
- IDE: none, command line
- OS: macOS 27.2.1
Quarto check output
Quarto 99.9.9
Pandoc version 3.13.0: OK
Dart Sass version 1.107.1: OK
Deno version 2.9.8: OK
Typst version 0.15.1: OK
Version: 99.9.9
commit: 83432c028f6c07167c23f948da7067b37fe8a18b
- Vorherrschende Sprache
- JavaScript
- Sterne
- 6.2k
- Forks
- 492
- Ø Merge
- 13 Std. 51 Min.
- Gemergte PRs (30 T.)
- 82
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus quarto-dev/quarto-cli
-
accessibility bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
quarto-dev/quarto-cli#15440 ·
Maintainer antworten meist innerhalb von 1 Tag
-
accessibility bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
quarto-dev/quarto-cli#15439 ·
Maintainer antworten meist innerhalb von 1 Tag
-
accessibility bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
quarto-dev/quarto-cli#15438 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
quarto-dev/quarto-cli#15431 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Grid column headings are misaligned in HTML websitesEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenbootstrap enhancement themes
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
quarto-dev/quarto-cli#15421 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in quarto-dev/quarto-cli
Ähnliche Issues
-
bug triage needed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 69/100
Maintainer antworten meist innerhalb von 1 Tag
-
[Resource]: PersephoneOffenresource-submission validation-passed
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
hesreallyhim/awesome-claude-code#3773 · 1 Kommentar ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
tabatkins/railroad-diagrams#129 ·
-
web: api() turns a null or object-valued error body into a TypeError or "[object Object]" and loses the statusEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag