markdown - BruceDai003/tech_blog GitHub Wiki

文本添加颜色的workaround


我没有找到有用的可以直接给文本添加颜色的简易方法,找到了的话,再进行更改。 目前看到有一个workaround如下: 其实谈不上是对文本添加颜色,只是在前面添加色块。使用的是placeholder image service。

- ![#f03c15](https://via.placeholder.com/15/f03c15/000000?text=+) `#f03c15`
- ![#c5f015](https://via.placeholder.com/15/c5f015/000000?text=+) `#c5f015`
- ![#1589F0](https://via.placeholder.com/15/1589F0/000000?text=+) `#1589F0`

结果如下:

  • #f03c15 #f03c15
  • #c5f015 #c5f015
  • #1589F0 #1589F0

方案二: 使用Emojis来对一些文本进行标记,比如:(用:开头,输入单词即可有提示) :+1:, :-1:, :fire:NEW:fire:, :warning:WARNING:warning:, :red_circle:IMPORTANT:red_circle:, :green_circle:, :yellow:circle:. :x:, :0:, :02:, :stop_sign:, :no_entry:, :100:, :zero:, :one:, :two:, ✔️ , ✅ , :bell:, 🔺 , 🔻 (github emojis)[https://gist.github.com/rxaviers/7360908], (github emojis2)[https://github.com/onmyway133/emoji]