using gfm latex seems to be the only reasonable way to annotate with color (see latex color docs), although it does not seem to differentiate between serif (roman -
textrm), sans (sans font -textsf), and mono (teletype -texttt), and colorbox is not supported, which seems to eliminate the possibility of background / highlight color.
| method | markdown | result |
|---|---|---|
| latex | text $\textrm{\color{cyan}{cyan text}}$ text |
text |
| latex | text $\textsf{\color{cyan}{cyan text}}$ text |
text |
| latex | text $\texttt{\color{cyan}{cyan text}}$ text |
text |
| font | text <font color="cyan">cyan text</font> text |
text cyan text text |
| span | text <span style="color:cyan">cyan text</span> text |
text cyan text text |
| svg |
text <svg height="20" width="55"><text x="0" y="20" fill="cyan">cyan text</text></svg> text
|
text cyan text text |