How to color text in github's flavoured markdo

2019-06-22 16:17发布

问题:

I am trying to color a block of text which needs to be included in an article in a git repository which is accessible to people. I am trying to color a word to bring the desired effect. Is there a way to use css styles to color the text since github doesnt support the styles anymore?

Currently I am using the code below which doesnt work in github. Help is appreciated.

<center> <h1>2014, The year of <span style="color:red">Red</span></h1> </center>

回答1:

There is no such feature available right now. An alternative could be to color it in blue using links:

# 2014, The year of [Blue](#)

That would create the following output:

If you really want to have another color, another alternative is to use an image (e.g. like this one).

Then you can include it like below:

# 2014, The year of ![](https://cloud.githubusercontent.com/assets/2864371/10368192/cad27ed0-6ddc-11e5-8150-4f9c14ab9602.png)