Open aronatkins opened 2 months ago
Thanks for the report.
This is a mis-designed of the email format. It applies only on HTML.
BTW this is not a revealjs related issue, it will be the same with any other HTML format
Two problems I see
email
content is not stripped out of the presentation - I think it should right ? Probably related to email applying only to format: html
. Email is in fact a feature that should apply across format.
<qmd-name>.<format-ext>
. So html
and revealjs
both overwrite each other.
I believe this specific issue is a variant of those above. Email definitely needs some work !
@cderv - Email is only processed with format: email
, today, which feels like it leads to both of the problems you describe.
Because email
is a format, Quarto renders twice and produces two outputs. It feels like email should not be a format, but should be an always-available filter.
My current thinking: An email
div should cause its files to be written alongside the target file format regardless of format. That email
div should never appear in the target file output.
This is part of a series of email issues filed ahead of planned discussions with the Quarto team.
One other note: I used revealjs+email in this example, but it also applies to other formats. For example, I might want to produce email when rendering to PDF with Typst.
format:
typst: {}
email: {}
In this instance, we should produce a PDF, the extraction of an email message, and no HTML.
It feels like email should not be a format, but should be an always-available filter.
yes I think this is the main design problem we have here.
Bug description
Rendering a document containing two formats (revealjs and email) overwrites the first HTML file with the second format. In this example, we want the
email-preview/
and.output_metadata.json
but do not want the HTML file it produces.Steps to reproduce
Expected behavior
A revealjs document is allowed to produce slides HTML alongside email metadata.
Actual behavior
A vanilla HTML document overwrites the slides HTML and also produces email metadata.
Your environment
No response
Quarto check output