问题描述
我正在尝试给需要在人们可以访问的git存储库中的一篇文章中包含的文本加上颜色.我正在尝试给单词加上颜色以达到预期的效果.因为github不再支持样式了,有没有办法使用CSS样式为文本着色?
当前,我正在使用下面的代码,该代码在github中不起作用.感谢您的帮助.
< center>< h1> 2014年,< span style ="color:red">红色</span</h1>的年份.</center>
目前没有此类功能.一种替代方法是使用链接将其涂成蓝色:
#2014,[蓝色]年(#)
这将创建以下输出:
如果您真的想要其他颜色,则另一种选择是使用图像(例如
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>
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)
这篇关于如何在github风格的markdown中为文本着色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!