入门指南
语法速查表
基本语法
标题语法
段落语法
换行语法
强调语法
引用语法
列表语法
代码语法
分隔线语法
链接语法
图片语法
转义字符语法
内嵌 HTML 标签
扩展语法
扩展语法可用性
表格
围栏代码块
脚注
标题编号
定义列表
删除线
任务列表语法
使用 Emoji 表情
Highlight
Subscript
自动网址链接
禁止自动将 URL 转换为链接
Hacks
Underline
Indent (Tab)
Center
Color
Comments
Admonitions
Image Size
Image Captions
Link Targets
Symbols
Table Formatting
Table of Contents
Videos
书写工具
Color - markdown入门指南 - 笔下光年
网站首页
Color
Markdown doesn’t allow you to change the color of text, but if your Markdown processor supports <a href="http://www.bixiaguangnian.com/manual/markdown/4111.html">HTML</a>, you can use the <code><font></code> HTML tag. The <code>color</code> attribute allows you to specify the font color using a color’s name or the hexadecimal <code>#RRGGBB</code> code. ```markdown <font color=“red”>This text is red!</font> ``` The rendered output looks like this: <font color=“red”>This text is red!</font> The <code><font></code> HTML tag is technically supported but officially <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/font">deprecated</a>, which means it works for now but you’re not supposed to be using it. Unfortunately, there’s not another pure HTML alternative. You could try using one of the CSS alternatives. Not all Markdown applications provide CSS support, but if the one you’re using does, here’s an alternative to the <code><font></code> tag: ```markdown <p style="color:blue">Make this text blue.</p> ``` If this is supported by your Markdown application, the output looks like this: <p style="color:blue">Make this text blue.</p>
上一篇:
Center
下一篇:
Comments