No longer possible to color text in Markdown
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})$.
+1
Please re-open this and provide an update. It's a handy functionality and many people have expressed interest!
I'll pile on to say that I have significant need for this capability for my work.
+1
@dyasny good luck - Sounds like no one wants to touch this. Maybe Microsoft employed someone who would be willing to take on the challenge ;)
This is ridiculous - how hard can it be to add the ability to allow <span style="color: red;">text</span> into the markdown - what is the point of allowing issues to be raised if no one actually gives two hoots about them, when there is obviously a lot of people who would benefit from this feature?
+1
+1
Please do not add +1 to this or any issue. It notifies everyone and provides no value.
If you want to show your support for an issue, add a reaction to the original comment.
If you want to be notified about changes/updates, there's a subscribe button near the top on the right.
I'll +1 this to be annoying like the lazy Github developers that have kicked this can down the road for 5+ years... Why can't you guys add some basic support for coloring text?!? It's way past ridiculous already.
Can GitLab actually give a reason why this request is being ignored? Is it because it is too technically challenging to implement or because they don’t think this feature has merit? I would of thought it would be relatively easy to allow users to use foreground and background colours in Markdown - the syntax already exists in HTML, which could be implemented by allowing the SPAN tag in Markdown. Happy to stop pushing for this if there is actually a technical reason why this isn’t possible.
@bkeepers, which gem are you using for this. Can you provide a link to the repository so one of us can propose an upstream PR?
Thank you.
I've come across this thread since i needed to highlight some parts of a README file in green and red. I have resorted to using the diff language tag to generate some colored text and it luckily fits my use case, but i want to express my interest in re-opening this unfortunately closed issue and hope we can get an update on the current situation as to why this is not possible after 5 years since this feature has been requested.
And another one! Please make it possible to highlight text in different colors. I would need for my documentation. So, if you need some info why this would be good.
One of my projects puts out strings like this "4$VYb030llJwQLSmOT+OwsjA$1R447MnqP71JV12qXASEd++gR3cW9AfRUHVmWThiRwU+JzGHD99p53wbIV+kKoiy$cVBESqRgkflwX2jzBkThyfAzHWJm3L1tg5LCq849Pzw". This string is made of 4 different parts. Being able to color each of these parts would help the reader very much.
I don't understand, is this too complex too implement or cost too much money?
I WILL THROW MONEY AT YOU TO MAKE THIS HAPPEN!
:disappointed: 6 years down the line. Still no support. Github supports all the stupid emojis but not colored text. :weary:
I do not believe we have waited this long with no definitive yes or no!
We need colors, coding is no more a monocrome text on a terminal, Microsoft, give us life !
my god it takes
Colors please!