Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewilliamboswell committed Nov 3, 2023
1 parent 7975bb0 commit d255b74
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,4 @@ Helpers for working with terminal escapes

Run with `roc run examples/colors.roc`

I have the following shell output which normally renders with colors when displayed in a terminal. But I want to display this in markdown rendered in the browser. Are you able to convert this to html that will render the colors?

<p><span style="color: red;">Red fg</span></p>
<p><span style="color: green;">Green fg</span></p>
<p><span style="color: blue;">Blue fg</span></p>
<p><span style="background-color: red;">Red bg</span></p>
<p><span style="background-color: green;">Green bg</span></p>
<p><span style="background-color: blue;">Blue bg</span></p>
<p><span style="color: #ff6f6f; background-color: black;">{ fg: BrightRed, bg: Black}</span></p>
<p><span style="color: green; background-color: red;">{ fg: Green, bg: Red}</span></p>
<p><span style="color: #ffff54; background-color: green;">{ fg: BrightYellow, bg: Green}</span></p>
<p><span style="color: #6f6fff; background-color: #ffff6f;">{ fg: BrightBlue, bg: BrightYellow}</span></p>
<p><span style="color: #ff6fff; background-color: #6f6fff;">{ fg: BrightMagenta, bg: BrightBlue}</span></p>
<p><span style="color: cyan; background-color: #ff6fff;">{ fg: Cyan, bg: BrightMagenta}</span></p>
<p><span style="color: #ffffff; background-color: cyan;">{ fg: BrightWhite, bg: Cyan}</span></p>
<p><span style="color: black; background-color: white;">{ fg: Default, bg: Default}</span></p>

![example output showing colors](example.png)
Binary file added example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d255b74

Please sign in to comment.