Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kmasiello opened this issue Mar 29, 2024 · 3 comments
Labels
enhancement New feature or request projects
Milestone

Comments

@kmasiello
Copy link

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 cscheid added enhancement New feature or request projects labels Mar 29, 2024
@cscheid
Copy link
Collaborator

cscheid commented Mar 29, 2024

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

@mcanouil
Copy link
Collaborator

@cderv
Copy link
Collaborator

cderv commented Mar 29, 2024

@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

registerWriterFormatHandler((format) => {
switch (format) {
case "email":
return {
format: emailFormat(),
pandocTo: "html",
};
}
});

registerWriterFormatHandler((format) => {
switch (format) {
case "dashboard":
return {
format: dashboardFormat(),
pandocTo: "html",
};
}
});

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request projects
Projects
None yet
Development

No branches or pull requests

4 participants