Is there a way to customize the background color for inline code elements in R-markdown PDF files?
Currently, when I enclose text within single backticks like this
, the background color does not appear when I convert the document to a PDF (only the font is visible, as shown in the screenshot below). However, everything works fine for code blocks. Could there be any adjustments or tweaks that can be made to resolve this issue?
https://i.sstatic.net/Ugbc0.png
I tried following the guidance provided in response to issue 50727217, but it did not format the font as 'code'.
All I want is for the inline code in R-markdown to be displayed similar to how markdown handles it.
Note
The purpose of wanting the inline code to have a gray background color is purely for aesthetic reasons and will not involve running any code within R markdown; it is simply meant to highlight certain code elements such as paths or function names.