Open dhruvkb opened 1 year ago
ANSI code 7 inverts the background and foreground colors, which can be helpful for giving the text a bold attention-grabbing appearance.
to-html does not render this properly, instead showing the text with regular background and foreground colors.
to-html
$ to-html 'printf '\''\e[7mHello World!\e[0m'\'''
<pre class="terminal"> <span class='shell'>> </span><span class='cmd'>printf</span> <span class='str'>'\e[7mHello World!\e[0m'</span> Hello World!<span class='shell'>> </span><span class='caret'> </span> </pre>
@Aloso I can take this unless you want to save it for a new contributor
@CosmicHorrorDev feel free!
ANSI code 7 inverts the background and foreground colors, which can be helpful for giving the text a bold attention-grabbing appearance.
to-html
does not render this properly, instead showing the text with regular background and foreground colors.