Skip to content

Instantly share code, notes, and snippets.

@ellemenno
Last active November 24, 2024 23:03
Show Gist options
  • Save ellemenno/190b983b49f847b0e6f7a92d1aabb4cc to your computer and use it in GitHub Desktop.
Save ellemenno/190b983b49f847b0e6f7a92d1aabb4cc to your computer and use it in GitHub Desktop.
github flavored markdown testing

colors

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 $\textrm{\color{cyan}{cyan text}}$ text
latex text $\textsf{\color{cyan}{cyan text}}$ text text $\textsf{\color{cyan}{cyan text}}$ text
latex text $\texttt{\color{cyan}{cyan text}}$ text text $\texttt{\color{cyan}{cyan 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment