Replies: 3 comments 1 reply
-
As documented, title in call-out is a level two header not level one (level one is supposed to be document's title in markdown). https://quarto.org/docs/authoring/callouts.html Regarding the automatic title detection, that might be undocumented for the knitr engine indeed. And possibly a bug if confirmed on latest Quarto version. Also, I would suggest to upgrade to 1.5 to confirm the behaviour as you are running on 1.3 which is starting to get quite old. |
Beta Was this translation helpful? Give feedback.
-
I'll note, in passing, that |
Beta Was this translation helpful? Give feedback.
-
Will do |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
[Env: R 4.3.2, RStudio 2023.12.1+402, Quarto 1.3.450]
Quarto gets confused about what constitutes a chapter/section heading in a number of contexts, but the worst is when
a code chunk with a comment appears before the title of a chapter.
To test what chunk options were in use in a chapter I inserted a chunk as follow before the chapter title.
What got used as the chapter title there was the comment # what are figure defaults
I know the simple fix: DONT DO THAT -- move the chunk after the title, but it was unnerving.
It seems like scanning for ch/section titles should ignore comments within chunks. Using
eval:false
had no effectI'm calling these "infelicities" not bugs, but it would be nice if these aspects were documented somewhere.
Another place this occurs is in fenced divs with an inline title:
Here, History corner appears as a section in the Outline view. I learned that I can avoid this using a title
Beta Was this translation helpful? Give feedback.
All reactions