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})$.
Thanks for the request. This gem only handles markup to HTML conversion, but I've logged your feature request for our design team to consider.
Any news on this? Has there been a decision? Hopefully, this will be supported. :smiley:
I second that opinion. Actually and way to color text would be great.
Third!
Fourth.
Me too I support this feature, it can be great to at last color the text, but using style="" to set the colors is better for me, I normaly use with <em></em>,<strong></strong>, <u></u>, <s></s>… well mainly text format', or in <blockquotes> too, but it don't work on github…
Adding a way to add a background color can be great too, when I make <table></table> it can be hard to easily see the entries and separators <th></th>.
Yes, please!
I like to write color-coded documentation. When I document a complicated set of instructions, I like to put a list of the parameters that are needed at the beginning and then give each parameter it's own color.
Plus, for commenting student jupyter notebooks, it would be awesome to write my comments in color.
I agree that we have to have the color tags back.
For the time being, I can use text goes here Which allows html to render the text…but some markup simplicity would go a long way here…
Another item that would be nice would be to be able to color the background color of a Jupyter notebook cell…
-p
P a u l A. N a k r o s h i s
Associate Professor of Physics [email protected] Chair, Department of Physics University of Southern Maine Office : 207. 780. 4158 96 Falmouth Street FAX : 207. 228. 8288 Portland, ME 04104-9300
Web Presence:
University site: http://people.usm.maine.edu/pauln/ Science Blog: www.paulnakroshis.net Photography Blog: www.mainesight.com and Portfolio: www.paulandrewphoto.com twitter: @paulnakroshis google+: https://plus.google.com/+PaulNakroshis
On February 15, 2017 at 11:00:50 AM, bala-sridaran ([email protected]) wrote:
I agree that we have to have the color tags back.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/github/markup/issues/369#issuecomment-280051726, or mute the thread https://github.com/notifications/unsubscribe-auth/ADOfRv7s8yLbC2leKMAQ1a_Em8vtkxoIks5rcyEygaJpZM4CjTX6 .
@paulnakroshis really? I can't use that at all.. the style attribute is disallowed.
+1
+1
No news about this request ? GFM won't get colorized text anymore?
+1
@cklie etc: You guys are commenting on a closed issue, which won't do any good. ~~This is also the wrong repo.~~
~~The relevant issue to support would be html-pipeline#287, as that is the repo that actually does the HTML filtering.~~
EDIT: this is incorrect, see below.
please color
@Narvey
You guys are commenting on a closed issue, which won't do any good. This is also the wrong repo.
- Why did you close it, if it is not resolved?
- The issue you linked, refer back to you guys as using a "different whitelist".
- THIS is the github repo, so why do you say it's wrong??
@E3V3A I was wrong about the other repo, I read that this filtering was done elsewhere, but either that was wrong to begin with, or has changed since 2015.
I have no idea why it was closed. @bkeepers, is there a Trello board or something else that this is being tracked on, or should we reopen it here?
Four years later--is there still no way to color text in a GitHub readme or some sort of whitelist of what's allowed so I can at least try to hack together a solution?
Filtering out certain HTML/CSS attributes is completely understandable, but I have a few projects with use-cases involving the ability to change the font size and font color in a few readme files. Is this ever going to be possible, or do I need to look into utilizing another tool to accomplish this?
README.md files on GitHub can be so incredibly convenient to use, but it always feels like there's something I need that the web interface makes weirdly impossible to do (e.g. color text, print a README file without all of the chrome)...