Skip to main content

Markdown

Overview

This Markdown cheat sheet provides a quick overview of all the Markdown syntax elements. It can’t cover every edge case, so if you need more information about any of these elements, refer to the reference guides for basic syntax and extended syntax.

Basic Syntax

These are the elements outlined in John Gruber’s original design document. All Markdown applications support these elements.

ElementMarkdown Syntax
Heading[Heading](https://www.markdownguide.org/basic-syntax/#headings)`# H1H1## ##H2### H2 ### H3H3`
Bold[Bold](https://www.markdownguide.org/basic-syntax/#bold)`**bold text**`
Italic[Italic](https://www.markdownguide.org/basic-syntax/#italic)`*italicized text*`
Blockquote[Blockquote](https://www.markdownguide.org/basic-syntax/#blockquotes-1)`> blockquoteblockquote`
[Ordered ListList](https://www.markdownguide.org/basic-syntax/#ordered-lists)`1. First item 2.item2. Second item 3.item3. Third item item`
[Unordered ListList](https://www.markdownguide.org/basic-syntax/#unordered-lists)`- First item -item- Second item -item- Third item item`
Code[Code](https://www.markdownguide.org/basic-syntax/#code)``code``
[Horizontal RuleRule](https://www.markdownguide.org/basic-syntax/#horizontal-rules)`---`
Link[Link](https://www.markdownguide.org/basic-syntax/#links)`[title](https://www.example.com)`
Image[Image](https://www.markdownguide.org/basic-syntax/#images-1)`![alt text](image.jpg)`

Extended Syntax

These elements extend the basic syntax by adding additional features. Not all Markdown applications support these elements.

ElementMarkdown Syntax
Table[Table](https://www.markdownguide.org/extended-syntax/#tables)`| Syntax | Description | | ----------- | ----------- | | Header | Title | | Paragraph | Text |`
[Fenced Code BlockBlock](https://www.markdownguide.org/extended-syntax/#fenced-code-blocks)``` `{  "firstName": "John",  "lastName": "Smith",  "age": 25 } 25}````
Footnote[Footnote](https://www.markdownguide.org/extended-syntax/#footnotes)`Here's a sentence with a footnote. [^1] [^1]: This is the footnote.`
[Heading IDID](https://www.markdownguide.org/extended-syntax/#heading-ids)`### My Great Heading {#custom-id}`
[Definition ListList](https://www.markdownguide.org/extended-syntax/#definition-lists)`term: definition`
term : definition[Strikethrough](https://www.markdownguide.org/extended-syntax/#strikethrough)
Strikethrough`~~The world is flat.~~`
[Task ListList](https://www.markdownguide.org/extended-syntax/#task-lists)`- [x] Write the press release -release- [ ] Update the website -website- [ ] Contact the mediamedia`
[Emoji](https://www.markdownguide.org/extended-syntax/#emoji)
Emoji
(see also [Copying and Pasting EmojiEmoji](https://www.markdownguide.org/extended-syntax/#copying-and-pasting-emoji))
`That is so funny! :joy:`
Highlight[Highlight](https://www.markdownguide.org/extended-syntax/#highlight)`I need to highlight these ==very important words==.`
Subscript[Subscript](https://www.markdownguide.org/extended-syntax/#subscript)`H~2~OO`
Superscript[Superscript](https://www.markdownguide.org/extended-syntax/#superscript)`X^2^`