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 cyan text text |
text cyan text text |