Skip to content

email: multiple pages may produce email; last one wins #10741

Description

@aronatkins

Bug description

Given a Quarto website with multiple pages containing {.email} blocks, the last rendered page defines the contents of the email metadata.

Steps to reproduce

Render a project containing a _quarto.yml and two qmd files:

project:
  type: website
---
title: index page
format:
  email: {}
---

This is the index page.

::: {.email}

::: {.subject}
email from index
:::

The index page may want to produce email.
:::
---
title: other page
format:
  email: {}
---

This is the other page.

::: {.email}

::: {.subject}
email from other
:::

The other page may want to produce email.
:::

The email-preview/ directory and .output_metadata.json file come from the last render to occur, with no indication that the previous result is being overwritten.

Expected behavior

This is an ambiguous situation. When two documents in the same directory want to produce email metadata, only one can win, because there is a singular, well-known .output_metadata.json file.

Actual behavior

Last-render wins.

Your environment

No response

Quarto check output

Quarto 1.5.57
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.2.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.41.0: OK
      Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.5.57
      Path: /Users/aron/quarto/quarto-1.5.57-macos/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /Library/TeX/texbin
      Version: 2024

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.12.2
      Path: /opt/homebrew/opt/python@3.12/bin/python3.12
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........OK
      Version: 4.3.3
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
      knitr: 1.48
      rmarkdown: 2.27

[✓] Checking Knitr engine render......OK

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions