There are many dialects of Markdown
CoWem uses PegDown, which unfortunately lacks a comprehensive description of its accepted syntax.
It’s probably closest to MultiMarkdown, which has a convenient syntax cheat sheet
Mathematics support is via MathJax
Syntax highlighting (coloring) of program source code is provided via HighlightJS.