Replies: 1 comment
-
See: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Initially posted in #7101.
Hi, jumping in on this issue as I'm encountering (what I think is) the same issue with my Quarto website related to how document-level format options interact with
_metadata.yaml
.I have a
_metadata.yaml
file in my posts folder that sets commonformat
options forhtml
,typst
, anddocx
. This works well for blog posts, as they all share the same formatting.However, I occasionally want to include a
revealjs
presentation alongside my posts. When I try to specifyformat: revealjs
in the front matter of the presentation document, it appears to be overridden by the_metadata.yaml
settings, which don't includerevealjs
. As a result, Quarto attempts to render the presentation as anhtml
document and fails with the following error:This seems to happen because
_metadata.yaml
specifies a set of formats that ends up excludingrevealjs
, even if it's defined at the document level.I believe it would be helpful if Quarto allowed document-level format declarations to override folder-level
_metadata.yaml
settings (in line with what is mentioned in the Quarto documentation) or at least provided a flag likeformat-override: true
orformat-override: merge
.This would prevent the need to duplicate format settings across dozens of documents. For example, I currently have a shared
_metadata.yaml
like this:But if I add a single Revealjs presentation, I’d need to move this format block into each individual post just to make one exception.
@mcanouil the minimum reproducible example is: https://github.com/ar-puuk/quarto-format-override-issue
Thanks for the great tool and your time looking into this!
Quarto Verion: 1.7.32
Windows Version: Windows 11 x64
Happens in both RStudio and Positron
R Studio Version: 2025.05.1 Build 513
Positron Version: 2025.08.0 (System Setup) Build 63
Beta Was this translation helpful? Give feedback.
All reactions