Github officially does not support coloured text, but with a small trick, you can get a few colours by including a diff
file in the markdown.
I did it when I had to put on hold open source projects due to rectum cancer recovery, for instance [Wayback] this fritzcap diff added the [Wayback] text:
which [Wayback] rendered becomes a kind of red bulleted list:
I learned this trick via [Wayback] How to add color to Github’s README.md file – Stack Overflow (thanks to [Wayback] revisions by [Wayback] craigmichaelmartin, [Wayback] Noam Manos and [Wayback] GalaxyCat105):
You can use the
diff
language tag to generate some colored text:```diff - text in red + text in green ! text in orange # text in gray @@ text in purple (and bold)@@ ```
However, it adds it as a new line starting with either
- + ! #
or starts and ends with@@
This issue was raised in [Wayback] github markup #369, but they haven’t made any change in decision since then (2014).
By now there is a new issue, again with little progress: [Wayback] Color text in markdown · Issue #1440 · github/markup
–jeroen