Markdown syntax
Markdown is a plain text format: a few symbols such as #, * and | mark headings, emphasis and tables, and any Markdown editor or converter turns them into formatted text. The rules below follow CommonMark and GitHub Flavored Markdown (GFM), the two specifications most apps follow, so an example that works here works in GitHub, VS Code, Obsidian and Noteline.
Markdown headings
One to six # signs and a space make H1 to H6
Bold, italic and strikethrough
Asterisks for bold and italic, two tildes for strikethrough
Markdown lists
Bullets, numbered lists, nesting and start numbers
Markdown task lists
[ ] and [x] after a list marker make checkboxes
Markdown links
Inline links, reference links, autolinks and heading links
Markdown images
Alt text, relative paths, titles and sizing with HTML
Markdown tables
Pipes, a separator row, and colons for alignment
Markdown code blocks
Fenced blocks, language tags, inline code and indented code
Markdown blockquotes
Lines starting with > for quotes, nested quotes and callouts
Markdown line breaks
Backslash, two trailing spaces, blank lines and <br>
Markdown escape characters
A backslash shows any punctuation mark as plain text
Mermaid diagrams
Flowcharts and sequence diagrams from a mermaid code block
The .md file
A plain text file in Markdown that any text editor can open
Markdown footnotes
A [^label] reference and a matching definition line
Markdown horizontal rules
Three dashes, asterisks or underscores on a line by themselves
Heading anchors and custom IDs
Generated anchors, {#id} attributes and HTML anchors
Markdown front matter
A YAML block between --- lines at the top of the file
HTML in Markdown
Raw HTML tags, block rules and renderer sanitizing
Collapsible sections in Markdown
The details and summary tags, with blank lines inside
Underline in Markdown
No Markdown syntax, so HTML or a Pandoc span
Colored text in Markdown
No color syntax, so HTML, math or a callout instead
Comments in Markdown
HTML comments, the [//]: # trick and Obsidian %%
Math in Markdown
LaTeX between single or double dollar signs