Skip to content
Discussion options

You must be logged in to vote

This should work if you list both html and pdf as target formats for those documents. The current heuristic is that any document without a format gets the website default and any document with a format will render exactly the formats listed (which allows you to render to just PDF, Revealjs, Markdown, etc. -- which is probably the more common case). So TLDR this should do it:

---
title: "Document"
format:
    html: default 
    pdf: default
---

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@andrewpbray
Comment options

Answer selected by jjallaire
Comment options

You must be logged in to vote
1 reply
@andrewpbray
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants