Is there a way to selectively 'unfreeze' documents? #7540
-
DescriptionThe execute:
freeze: auto [minus x.qmd] Example of applicationI'm working with two profiles (HTML and PDF), and I need different content for <!-- %:::% .common h1 begin %:::% -->
# Welcome {.unnumbered}
<!-- %:::% .common h1 end %:::% -->
```{r}
#| label: setup
#| echo: false
#| output: false
# library(here)
source(here::here("R/quarto-setup.R"))
```
::: {.content-visible when-format="html"}
{{< include qmd/_index-html.qmd >}}
:::
::: {.content-visible when-format="pdf"}
{{< include qmd/_index-pdf.qmd >}}
::: Source: https://github.com/danielvartan/abnt/blob/main/index.qmd As you can see, the index file does not change, but the content of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Set Side note: the proper option to not include a code cell is Also: |
Beta Was this translation helpful? Give feedback.
Set
freeze: false
in the documents you are talking about.Side note: the proper option to not include a code cell is
include: false
(not echo+output).Also: