markup icon indicating copy to clipboard operation
markup copied to clipboard

No longer possible to color text in Markdown

Open peterflynn opened this issue 12 years ago • 90 comments

Earlier, GFM allowed you to create colored text this way: <font color="red">Status: **Not yet implemented**</font>

That used to work. But at some point the <font> tag was removed from the HTML sanitization whitelist.

I suppose it got removed because it's deprecated in HTML5. (Aside: the color attribute is still on the whitelist. Should it be removed too? As far as I know, there's no other HTML tag it can be used on...)

So, can we have a new supported way of coloring text in sanitized GFM now?

Here's one possibility: allow a very strict use of style for setting colors. Only attributes that exactly match the form style="color: #xxxxxx" would be permitted. For something as constrained as that, you could enforce it with a simple regexp like ^color:\s*#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$.

peterflynn avatar Sep 17 '14 22:09 peterflynn

I do not understand why text color is not possible on github when so many people is demanding it...

didix21 avatar May 08 '18 09:05 didix21

I remember 20 years ago in basic HTML we could already have colors on the Internet. This is so modern. 🙄

patheticcockroach avatar May 08 '18 09:05 patheticcockroach

GitHub is such an awesome service, but it's easy working somewhere like GitHub to forget that a lot of the rest of us are stuck working with managers who will specifically ask "this documentation is great, but can you make that text red?" or "how do I print this readme without all of the other crap on it?"

tecz avatar May 08 '18 18:05 tecz

I eventually gave up and decided to use GH pages + jekyll. It's great, and multimarkdown is even better than GFM.

JarrettBillingsley avatar May 08 '18 18:05 JarrettBillingsley

this would totally be a killer feature! would be great if it is prioritized

akskuchi avatar Jun 01 '18 16:06 akskuchi

+1 for: <span style=“color:red;”> text </span>

bogdanpolak avatar Jun 27 '18 13:06 bogdanpolak

+1 yes, please!

Scure21 avatar Jul 30 '18 11:07 Scure21

Please, don't add "+1" comments to the issue. And to any issue on github in general. Just add thumbs up to the first comment.

Because otherwise a big group of people would be notified over email with your comment.

arcusfelis avatar Jul 31 '18 15:07 arcusfelis

Really? It is 2018 and we can't color our texts in GitHub Readmes???

mhyousefi avatar Aug 19 '18 12:08 mhyousefi

I am so glad people continue to wish for this development Hope it will actually come true one day

thiemve avatar Aug 20 '18 07:08 thiemve

Yes this is something I really miss. Please at the possibility to modify the text color. Thanks

Endor8 avatar Aug 21 '18 14:08 Endor8

Apparently nobody GaF here... Even suggesting to reopen a closed issue that was wrongly closed without any reason. (Let's do it the old fashioned MS way, put our head up our * and pretend the problem doesn't exists.)

E3V3A avatar Sep 04 '18 09:09 E3V3A

@E3V3A Maybe we just need to try it on Windows 10 🤣

JawsomeJason avatar Sep 05 '18 00:09 JawsomeJason

This might help:

Status: Not yet implemented

![Status: **Not yet implemented**](http://placehold.it/350x65/FF0000/FFFF00.png&text=Not+yet+implemented) 

https://stackoverflow.com/questions/11509830/how-to-add-color-to-githubs-readme-md-file

PeterKneale avatar Oct 10 '18 02:10 PeterKneale

I also would like to have github flavored markdown allow css styling, including background color if possible:

https://github.com/montanaflynn/github-colors/tree/new-go

Should look like this:

screen shot 2019-02-09 at 23 08 42

montanaflynn avatar Feb 09 '19 16:02 montanaflynn

+1

arthurxavier avatar Feb 11 '19 16:02 arthurxavier

Still waiting for this to be resolved

sonaaliM avatar Mar 13 '19 17:03 sonaaliM

+1

EPiC-APOC avatar Mar 15 '19 14:03 EPiC-APOC

+1

praweb avatar Apr 07 '19 22:04 praweb

+1

jorgedfbranco avatar Jun 20 '19 04:06 jorgedfbranco