-
DescriptionI tried to create sections from a chunk. It seems that I can't cat() two sections inside one statement. It's working when there are seperate statements. ---
format: html
---
# Working, headings will be created
```{r}
#| results: asis
#| echo: false
cat("## Heading\n\n")
cat("## Another Heading\n\n")
```
# Not working, second heading is not rendered
```{r}
#| results: asis
#| echo: false
cat("## Heading\n\n",
"## Another Heading\n\n")
``` Regards, Stefan |
Beta Was this translation helpful? Give feedback.
Answered by
mcanouil
Jan 24, 2024
Replies: 1 comment
-
Thanks for the reproducible example but it has actually nothing to do with Quarto. ## Heading
## Another Heading This is not a valid header. Use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mcanouil
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the reproducible example but it has actually nothing to do with Quarto.
cat()
hassep = " "
by default, so what you are writing is:This is not a valid header.
Use
keep-md: true
to look at the markdown you generate.