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

Colous please! @github-cla

Agarwal-Tanvi avatar Apr 24 '20 07:04 Agarwal-Tanvi

if you must, try this:

- red
+ green
! orange
# gray

to render something visually appealing such as:

-! Warning !-

or

+( Venisons dear isn't it? )+

or

!~ Dwarf Shortage ~!

or

#=- Stationary Store Moves -=#

reposting so its immediately visible

Xaekai avatar Apr 25 '20 10:04 Xaekai

if you must, try this:

- red
+ green
! orange
# gray

to render something visually appealing such as:

-! Warning !-

or

+( Venisons dear isn't it? )+

or

!~ Dwarf Shortage ~!

or

#=- Stationary Store Moves -=#

reposting so its immediately visible

Thanks! But... seriously, Github? An HTML 1.0 feature like this? What is this, gopher?

ChristianMertes avatar May 20 '20 11:05 ChristianMertes

+1!!

! Don't want to add the "!"!
+ Why "+"?
- Don't want "-" either.
# Why??
@@ Not change diff, but add a new language for it. @@
@@ Or greater is SUPPORT HTML style!! @@

wyz23x2 avatar May 24 '20 09:05 wyz23x2

+1 Please add colours

alec42 avatar Sep 03 '20 12:09 alec42

As a workaround, you guys can use something like this ⬇️ ![#FF0000](https://placehold.it/15/FF0000/000000?text=+)

It will display this: #FF0000 #FF0000

My work. Thanks. 💯

■ ■ ■ ■ ■ ■ ■ ■■■■■ ■ ■■■■■

volkantash avatar Dec 10 '20 00:12 volkantash

I would love color support in text too, I have a command line utility that utilizes ANSI color for terminal output, and it is a main feature of it, as it without it is less usable. And to showcase it in README.md properly, I need to put a screenshot, which is silly a bit.

screenshot

Having it be a text, would make it easier to update it automatically on code changes, make it more accessible, response to background color changes better, and probably make it be a little more SEO / search friendly, and make it more friendly on mobile.

baryluk avatar Jan 07 '21 09:01 baryluk

hi, so Github, what's up with text color? At least integrate the <span style="color:red"> RED TEXT </span> to work... using the diff option works, but... its not fun to use.

Please

ghost avatar Jan 28 '21 13:01 ghost

Colors are the best thing in life, we don't want a B&W one. Computers had their sad monochrome days, then came the happiness with colors, why going back?

GiuseppeChillemi avatar Jan 29 '21 11:01 GiuseppeChillemi

I am so tired of this shit. My hacker uses your website along with his 10 aliases. Can't you get him to stop hacking me. This has been going on for almost 10 yrs. It's actually stalking EU commission wants me to get the local police involved. I don't want to but I guess that's where it is going. His name is Derek Pate but I don't think he uses that name. Just so he stays out of trouble.

Get Outlook for Androidhttps://aka.ms/ghei36


From: GiuseppeChillemi [email protected] Sent: Friday, January 29, 2021 5:59:25 AM To: github/markup [email protected] Cc: Subscribed [email protected] Subject: Re: [github/markup] No longer possible to color text in Markdown (#369)

Colors are the best thing in life, we don't want a B&W one. Computers had their sad monochrome days, then came the happiness with colors, why going back?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/github/markup/issues/369#issuecomment-769763071, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASD7APK2W5JWIWL4SHR4K23S4KPJ3ANCNFSM4AUNGX5A.

deelawson11 avatar Jan 30 '21 13:01 deelawson11

I am so tired of this shit. My hacker uses your website along with his 10 aliases. Can't you get him to stop hacking me. This has been going on for almost 10 yrs. It's actually stalking EU commission wants me to get the local police involved. I don't want to but I guess that's where it is going. His name is Derek Pate but I don't think he uses that name. Just so he stays out of trouble.

wow, you are completely confused. This ain't the support channel. This is about colored github issues. Completely unrelated

ghost avatar Jan 30 '21 14:01 ghost

Welcome 2021, still no colors...

eberamp avatar Feb 03 '21 22:02 eberamp

This is a closed request. Literally, every comment in here for a long time now has fallen upon deaf ears.

I think a new request needs to be opened. Not sure why this one was closed.

EasyG0ing1 avatar Feb 06 '21 05:02 EasyG0ing1

Instead of posting +1 here, please add your support to issue #1440.

ddopson avatar Feb 15 '21 21:02 ddopson

2022 and still waiting... *sigh*

teshanshanuka avatar May 12 '22 06:05 teshanshanuka

We need colour text plz

Adventuresofbot avatar May 30 '22 14:05 Adventuresofbot

put in text editor: 8-10 color. No need custom color.

volkantash avatar May 30 '22 15:05 volkantash

this issue is closed. I don't think github staff will be looking at your comments here. I suggest you comment here https://github.com/github/markup/issues/1440

ghost avatar May 30 '22 16:05 ghost

Yes you are right!!!

Adityaadpandey avatar Jun 26 '22 19:06 Adityaadpandey

2023 and still waiting #### $\textcolor{red}{\textsf{Color didint work .}}$

$\textcolor{red}{\textsf{Color didint work .}}$

magicse avatar Mar 04 '23 12:03 magicse