This Markdown cheat sheet shows every element twice: the Markdown you type and what it renders as, side by side, so you can copy the source and know what you will get. The basics (headings, emphasis, lists, links, images, code) come first, then the extended syntax most people actually need on GitHub: tables, task lists, strikethrough, footnotes, alerts, math and Mermaid diagrams.
Markdown is not one language. CommonMark defines the core; GitHub and GitLab add their own extensions; Obsidian and Notion add more; Slack, Discord, Reddit and Jira each use something Markdown-like with different rules, such as *single asterisks* for bold in Slack and Jira. The compatibility table shows what works where, and the translation table gives the exact syntax for each chat or ticketing tool. Previews are rendered with the open-source marked library (CommonMark plus GFM); features it does not implement show how GitHub or Obsidian displays them. A small playground at the end renders anything you type, in your browser.
How to use
- Search for an element (table, checkbox, footnote, line break) or jump to a section from the chips at the top.
- Copy the Markdown from the left of any card; the right shows how it renders.
- Check the compatibility table before using an extension outside GitHub, and the translation table when pasting into Slack, Discord, Reddit or Jira.
- Paste your own text into the playground to preview it, then copy the HTML or download a .md file.
Frequently asked questions
How do I make a table in Markdown?
Write the header row with pipes, then a separator row of dashes, then the data rows: | Name | Age |, then | --- | --- |, then | Ana | 31 |. Colons in the separator set alignment (:--- left, :---: centre, ---: right). Tables are a GitHub Flavored Markdown extension, supported by GitHub, GitLab, Obsidian, Reddit and most editors, but not by plain CommonMark, Slack or Discord.
How do I add a line break without starting a new paragraph?
End the line with two spaces or a backslash, or use <br> where HTML is allowed. A single newline is otherwise joined into the same paragraph in CommonMark and GitHub .md files. GitHub comments, Obsidian (by default), Slack and Discord treat every newline as a line break, which is why the same text can look different in a README and in an issue.
What is the difference between CommonMark and GitHub Flavored Markdown?
CommonMark is a precise specification of the original Markdown syntax. GitHub Flavored Markdown (GFM) is a strict superset that adds tables, task lists, strikethrough, extended autolinks and a filter for unsafe HTML. On github.com, footnotes, alerts, math, Mermaid diagrams and emoji shortcodes are added on top of GFM by GitHub's own processing.
How do I write a checkbox or to-do list in Markdown?
Use a list item that starts with [ ] for an open task or [x] for a done one: - [ ] Review, - [x] Write draft. GitHub and GitLab render clickable checkboxes in issues and pull requests, Obsidian toggles them in reading view, and GitLab also accepts [~] for an inapplicable task.
Does Slack support Markdown?
Partly, with its own rules called mrkdwn: *bold* with single asterisks, _italic_, ~strikethrough~ with single tildes, `code` and ``` code blocks, > quotes, and links written as <https://url|text> in messages sent through the API. There are no headings, tables or images. Slack's message composer also converts some formatting as you type, and Block Kit has a separate markdown block that accepts standard Markdown.
How do I add a footnote in Markdown?
Put [^1] where the reference goes and define it on its own line anywhere in the document: [^1]: The source. GitHub, GitLab and Obsidian number footnotes in order of use and list them at the bottom with back-links. CommonMark, Slack, Discord, Reddit and Notion have no footnotes.
Writing Markdown that renders the same everywhere
• Leave a blank line before and after headings, lists, code blocks, tables and HTML blocks. Many "why didn't it render" problems are a missing blank line.
• Use fenced code blocks with a language (```python) rather than indentation; they are clearer and get highlighting.
• Use * for emphasis rather than _, because underscores inside words (snake_case_names) are left alone by CommonMark but treated differently by older renderers.
• Pick one bullet character per list; switching from - to * starts a new list.
• Indent nested list content to line up with the text of the parent item, not a fixed two or four spaces.
• Write alt text for every image. It is shown when the image fails to load and read aloud by screen readers.
README essentials on GitHub
GitHub renders README.md at the root, in docs/ or in .github/. Headings automatically get anchors, and GitHub builds a table of contents from them (the outline button on the file view), so a clear heading structure is the table of contents. Relative links and images (./docs/setup.md, ./images/demo.png) work on github.com and keep working in forks and on other branches, unlike absolute URLs.
Alerts (> [!NOTE], > [!WARNING]) stand out for installation caveats, Mermaid code blocks draw architecture diagrams that stay editable, and <details> collapses long sections such as full configuration references. Keep the first screen to what the project is, how to install it and a minimal example; everything else can sit below.
