如何在 github 幫文字上色

最近想把 HACKMD 的文件搬到 github private repo,有些暫定的想法想放在 issue,但它不支援

  • <code style="color: red;">Hello</code>
  • <font color="blue">World</font>

後來看到這篇 Colored text to markdown 提出了解法

Find a way to colorfy text in Github in the best way now (Since May 2022)!

If i use the \color{nameColor} code from LATEX inside $$$$, now that github can support

沒想到居然是用 $\LaTeX$ 解決 👍