I need to document a library on github that output colored text in the terminal.
I've tried both span <style="color:red">
and <font color="red">
but it seems to strip out both tags.
Is the only way to do this is with images of colored text?
edit:
I ended up adding screenshots to git and using image links w/ github relative urls.
In case this may be helpful for someone who just needs to show colors rather than output, as a hackish workaround (and FYI), since Github supports Unicode (as Unicode, numeric character references or HTML entities), you could try colored Unicode symbols, though it depends on the font rendering them in color (as it happens to be appearing for me on Windows 10 and Mac 10.12.5, at least, though on the Mac at least, the up/down-pointing small red triangles don't show in red):