Markdown syntax cheatsheet
Use the following table with a concise overview of the essential Markdown elements to enhance your content.
Table 1.
Element | Markdown syntax | Result |
---|---|---|
Heading | # Header 1 ## Header 2 ### Header 3 | |
Bold text | **bold** __bold__ | |
Italic text | *italic* _italic_ | |
Ordered list | 1. First item 2. Second item 3. Third item | |
Unordered list | - First item - Second item - Third item | |
Nested list | Things I need to do today: 1. Fix usability problem 2. Clean up the page * Make the headings bigger 2. Push my changes 3. Create code review * Describe my changes * Assign reviewers * Ask for feedback | |
Inline link | [data.world](https://data.world/) | |
Reference link | An [example][id]. Then, anywhere else in the doc, define the link. [id]: http://example.com/ | |
Inline image | ![logo](https://www.example.com/logo.png) | |
Reference image | ![logo][id] [id]: /url/to/img.jpg | |
To-do list | * [ ] This is an unchecked TODO item * [x] This is a completed TODO item | |
Blockquote | > # The quarterly results look great! > > - Revenue was off the chart. > - Profits were higher than ever. > > *Everything* is going according to **plan**. | |
Code spans | We have `<code>` included. Back-ticks within `` `<code>` `` included. | |
Code blocks | This is a normal paragraph. this is a code block ``` Code goes here ``` | |
Horizontal rules | Paragraph 1. * * * Paragraph 2. - - - - | |
Line breaks | Roses are red,•• Violets are blue. (where • is a space) | |
Table | | Column 1 | Column 2 | |----------|----------| | value 11 | value 21 | | value 12 | value 22 | | value 13 | value 23 | | |
Embed content | Explore this video: @(https://www.youtube.com/watch?v=p56ZSngPjCM) | |
Embed Vega and Vega-lite | @[vega-lite](https://query.data.world/s/uvj74s?dws=0) @[vega](https://query.data.world/s/uvwdf4s?dws=0) ```vega { /* ... vega source code ... */ } ``` | |
Embed math formulas (MathJax) | When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\). $$x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}$$ |