This R code:
pander::pander(list("1", "2", 3, c(1, 2)))
renders a list that looks like this in an Rmarkdown file:
and a list that looks like this in a Quarto file:
How can I prevent the second indentation level in the quarto file?
Here is way using cat
and results=asis
:
---
format: html
---
```{r results='asis'}
cat(pander::pander(list("1", "2", 3, c(1, 2))))
```
My guess: pander::pander(list("1", "2", 3, c(1, 2)))
results in this markdown code:
* 1
* 2
* _3_
* _1_ and _2_
which when you type this result into a quarto document works like you want. I assume that the cat
and asis
forces quarto to render it "correctly". I agree with Ben that it looks like a bug in quarto.