Skip to content

Instantly share code, notes, and snippets.

@sebastiansauer
Created September 8, 2024 16:39
Show Gist options
  • Save sebastiansauer/d63eb95288f71ec4e357c2a0997858b0 to your computer and use it in GitHub Desktop.
Save sebastiansauer/d63eb95288f71ec4e357c2a0997858b0 to your computer and use it in GitHub Desktop.
---
title: content conditional visual (html, pdf, epub)
csl: "/Users/sebastiansaueruser/Google Drive/Literatur/refmgt/apa7.csl"
bibliography: /Users/sebastiansaueruser/github-repos/bib/bib.bib
format:
epub:
lang: de
# html:
# toc: true
# lang: de
# pdf:
# toc: true
---
::: {.content-visible when-format="html"}
1. should not appear in pdf
:::
::: {.content-visible unless-format="epub"}
2. should not appear in epub
::: {.content-visible when-format="epub"}
3. should only appear in epub but not in html, and not in PDF
NOT WORKING
:::
::: {.content-visible when-format="html" unless-format="epub"}
4. should only appear in html
:::
::: {.content-visible unless-format="html"}
5. should not appear in html and not in epub
:::
::: {.content-visible when-format="epub" unless-format="html"}
6. should only appear in epub
NOT WORKING
:::
::: {.content-visible when-format="epub"}
7. should only appear in epub and html
:::
::: {.content-visible when-format="epub" unless-format="html"}
8. should only appear in epub
:::
:::: {.content-visible when-format="epub"}
::: {.content-visible unless-format="html"}
9. should only appear in epub
:::
::::
:::: {.content-visible when-format="pdf"}
10. Should only appear in pdf
:::
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment