**bold**Renders as bold text.The syntax GitHub, GitLab, and most editors actually render, including the GitHub-Flavored Markdown extras.
**bold**Renders as bold text.*italic*Renders as italic text.***bold italic***Renders as bold and italic combined.~~strikethrough~~Renders as strikethrough (GitHub-Flavored Markdown).> quoted textRenders as a blockquote.Line ending in two spaces Forces a line break within the same paragraph.> nested\n>> quoteNested blockquotes, one > per level.Term\n: DefinitionA definition list (supported by some renderers, not core Markdown).\*escaped\*A backslash escapes a Markdown character so it renders literally.# H1 … ###### H6Six levels of headers, one to six # characters.- item or * itemUnordered (bulleted) list item.1. itemOrdered (numbered) list item. - nested itemIndent by 2+ spaces to nest a list item.---A horizontal rule (divider line).Header text\n=======Alternate H1 syntax: underline text with = signs.Header text\n-------Alternate H2 syntax: underline text with dashes.1) itemSome renderers also accept a closing parenthesis for ordered lists.[text](https://example.com)A hyperlink with visible text.An embedded image with alt text.[text](url "title")A link with a tooltip title shown on hover.<https://example.com>Auto-linked URL, shown as-is.[](url)A clickable image that links to a URL.[text][ref]\n\n[ref]: urlA reference-style link, useful for reusing the same URL multiple times.`inline code`Renders as inline monospace code.```js ... ```A fenced code block with syntax highlighting for the given language. indented by 4 spacesAlso renders as a code block (older syntax, less common now).```diff ... ```A diff-highlighted code block showing +/- additions and removals.- [ ] todo itemAn unchecked task list checkbox.- [x] done itemA checked task list checkbox.| A | B |\n|---|---|\n| 1 | 2 |A table: header row, separator row, then data rows.:emoji_name:Renders a supported emoji shortcode, e.g. :tada:@usernameMentions a user (renders as a link on GitHub).#123Links to an issue or pull request by number, on GitHub.```mermaid ... ```A Mermaid diagram block, rendered visually on GitHub.> [!NOTE]A GitHub-styled callout box (Note, Warning, Tip, etc.) inside a blockquote.End the line with two or more spaces before the line break, or use an explicit <br> HTML tag. A single line break with no trailing spaces is usually ignored and rendered as part of the same paragraph.
Every row, including the header, needs pipe characters at the start and end, and the second row must be a separator line made of dashes and optional colons, matching the number of columns in the header.
GFM adds extras on top of standard Markdown: tables, task lists (checkboxes), strikethrough text, automatic URL linking, and syntax-highlighted fenced code blocks. Not all Markdown renderers support these extensions.