quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.88k stars 318 forks source link

FR: support for multiple html-based output types - specifically `email` + `dashboard` #9230

Open kmasiello opened 6 months ago

kmasiello commented 6 months ago

A Quarto doc on Connect can support multiple output formats such as a html-email output and typst option, e.g.,

format:
  email:
    toc: true
    toc-location: left

  typst:
    toc: true

however, because email is html based, use of another html-based output (such as dashboard) is in conflict and will not render.

FR: enable both dashboard and email format types to be specified, or more generally, support multipe html-based outputs in a document.

cscheid commented 6 months ago

(Tagging this as projects because to fix this, we need to fix the management of intermediate files, and that goes through projects)

mcanouil commented 6 months ago
cderv commented 6 months ago

@cscheid @mcanouil I don't think this is just a conflict in rendering as other issues we may have. So not just an Execution Planner kind of things.

The question is here: How can the email feature be available for Dashboard too ?

Email format is created internally the same way as Dashboard format https://github.com/quarto-dev/quarto-cli/blob/d39cb2ff88d893cd9a5c215f0942b39b181a3716/src/format/email/format-email.ts#L11-L19

https://github.com/quarto-dev/quarto-cli/blob/d39cb2ff88d893cd9a5c215f0942b39b181a3716/src/format/dashboard/format-dashboard.ts#L277-L285

So email will be using html as the pandoc to format.

Email format brings the email feature, and I think for it to work with Dashboard it is more than just execution planner topic.