I want to add italic text in my code block:
```sh
lsblk
wipefs -a /dev/*NAME*
cfdisk /dev/*NAME*
```
But in the final output, it doesn't work. It just shows the * symbols.
I want to add italic text in my code block:
```sh
lsblk
wipefs -a /dev/*NAME*
cfdisk /dev/*NAME*
```
But in the final output, it doesn't work. It just shows the * symbols.
Content inside block code with a language name will be parsed as verbatim code, as-is without any specific parsing. You can't use markdown syntax inside code blocks - this is not supported by Pandoc.
You would need to generate HTML directly after the knitting step. For that, You can use external post-processing of the code block for your rendered output (like HTML processing) to tweak the output.
Some R packages like flair may help you:
Maybe it can be used to produce sh
code block too - not sure about that I did not try but you should check it out
I followed the instructions for the link you gave me, bet the flair package doesn't work for blogdown.
How can I do this without flair?
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.