index.qmd in book projects #3047
-
I am building a Quarto Project type that inherits from book. The idea is to build a book and a website for the book at the same time. I don't know what to do with I tried: :::{.content-hidden when-format="html"}:::
# Preface
:::
:::{.content-hidden when-format="pdf"}:::
# Welcome
::: but If I invert: :::{.content-hidden when-format="pdf"}:::
# Welcome
:::
:::{.content-hidden when-format="html"}:::
# Preface
::: now, ToC shows Welcome that should be ignored by pdf. ¯_(ツ)_/¯ I guess the problem here has something to do with the fact that Welcome is the first top level section despite being inside a content-hidden block. Welcome is the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Books are special, unfortunately, since we do special processing on titles (we capture the first H1 as the title of the page). The root issue is tracked here: |
Beta Was this translation helpful? Give feedback.
Books are special, unfortunately, since we do special processing on titles (we capture the first H1 as the title of the page). The root issue is tracked here:
#1108