Also, pander is integrated with knitr by default. pander simply identifies if knitr is running in the background, and if so, it uses capture.output to return the resulting string as an knit_asis object, meaning that you do not need to specify the results='asis' option in your knitr chunk:
pandoc.header
does not work inside a loop on an rmarkdown chunk withresults='markup'
, while it works withresults='asis'
.I ask the same question as here (https://stackoverflow.com/questions/66580211/how-to-change-chunk-options-results-formatting-inside-a-loop-in-a-chunk), because of the claim:
I copy the reprex
Thank you!