I using RStudio and Pandoc to output my document created in markdown to PDF. Pandoc always convert the code blocks in markdown using verbatim environment. Does anyone know how to switch the default conversion environment from verbatim to listing?
pandoc 1.8 released in 2011 added a
--listings option to "Use the listings package for LaTeX code blocks" instead of doing the highlighting in pandoc. Refer to the manual: https://pandoc.org/MANUAL.html.