Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support reversed i.e. code 7 #26

Open
dhruvkb opened this issue Jul 22, 2023 · 2 comments · May be fixed by #29
Open

Does not support reversed i.e. code 7 #26

dhruvkb opened this issue Jul 22, 2023 · 2 comments · May be fixed by #29
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@dhruvkb
Copy link

dhruvkb commented Jul 22, 2023

ANSI code 7 inverts the background and foreground colors, which can be helpful for giving the text a bold attention-grabbing appearance.

Screenshot 2023-07-23 at 5 04 32 AM

to-html does not render this properly, instead showing the text with regular background and foreground colors.

$ to-html 'printf '\''\e[7mHello World!\e[0m'\'''
<pre class="terminal">
<span class='shell'>&gt; </span><span class='cmd'>printf</span> <span class='str'>&#39;\e[7mHello World!\e[0m&#39;</span>
Hello World!<span class='shell'>&gt; </span><span class='caret'> </span>
</pre>
@Aloso Aloso added bug Something isn't working help wanted Extra attention is needed labels Jul 28, 2023
@CosmicHorrorDev
Copy link
Collaborator

@Aloso I can take this unless you want to save it for a new contributor

@Aloso
Copy link
Owner

Aloso commented Nov 24, 2023

@CosmicHorrorDev feel free!

@CosmicHorrorDev CosmicHorrorDev self-assigned this Nov 24, 2023
@CosmicHorrorDev CosmicHorrorDev linked a pull request Dec 24, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants