Background
在markdown中可以内嵌HTML,因此我们可以通过 HTML 来控制 markdown 中的字体显示(包括字体、字号与颜色),比如:
<font face="黑体">我是黑体字</font>
<font face="微软雅黑">我是微软雅黑</font>
<font face="STCAIYUN">我是华文彩云</font>
<font color=#0099ff size=7 face="黑体">color=#0099ff size=72 face="黑体"</font>
<font color=#00ffff size=72>color=#00ffff</font>
<font color=gray size=72>color=gray</font>
显示效果
我是黑体字 我是微软雅黑 我是华文彩云 color=#0099ff size=72 face=“黑体” color=#00ffff color=gray
注明
- color=#00ffff 可以用十六位颜色值
- color=gray 也可以用已知颜色名
Reference
- CSDN-markdown编辑器语法——字体、字号与颜色 - https://blog.csdn.net/testcs_dn/article/details/45719357/
FEATURED TAGS
algorithm
algorithmproblem
architecturalpattern
architecture
aws
c#
cachesystem
codis
compile
concurrentcontrol
database
dataformat
datastructure
debug
design
designpattern
distributedsystem
django
docker
domain
engineering
freebsd
git
golang
grafana
hackintosh
hadoop
hardware
hexo
http
hugo
ios
iot
java
javaee
javascript
kafka
kubernetes
linux
linuxcommand
linuxio
lock
macos
markdown
microservices
mysql
nas
network
networkprogramming
nginx
node.js
npm
oop
openwrt
operatingsystem
padavan
performance
programming
prometheus
protobuf
python
redis
router
security
shell
software testing
spring
sql
systemdesign
truenas
ubuntu
vmware
vpn
windows
wmware
wordpress
xml
zookeeper