Skip to content

Include or exclude certain variables when outputting to specific formats #11808

Answered by mcanouil
zackbatist asked this question in Q&A
Discussion options

You must be logged in to vote

You only have to write it so:

---
format:
  html:
    title: "HTML Quarto Playground"
  typst:
    title: "Typst Quarto Playground"
---

This is a playground for Quarto.

{{< lipsum 1 >}}

![An image]({{< placeholder 600 400 >}}){#fig-placeholder}

Note that "suppressing" in HTML can also be achieved using (S)CSS: display: none;.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by zackbatist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
themes Related to HTML theming or any other style related issue (like highlight-style)
2 participants