**bold**
or __bold__
render as bold*italic*
or _italic_
render as italic***bold & italic***
renders as bold & italic~~strikethrough~~
renders as # Heading 1
will be renderd as <h1>Heading 1</h1>
## Heading 2
will be rendered as <h2>Heading 2</h2>
### Heading 3
will be rendered as <h3>Heading 3</h3>
#### Heading 4
will be rendered as <h4>Heading 4</h4>
##### Heading 5
will be rendered as <h5>Heading 5</h5>
###### Heading 6
will be rendered as <h6>Heading 6</h6>
- Item 1
- Item 2
- Sub-item 1
- Sub-item 2
Will be renderd as:
Alternatively:
* Item 1
* Item 2
* Sub-item 1
* Sub-item 2
Will be renderd as:
1. First
2. Second
1. Sub-item 1
2. Sub-item 2
Will be rendered as:
Also:
1. First
1. Second
1. Sub-item 1
1. Sub-item 2
Will be rendered as:
- [x] Task 1
- [x] Subtask 1.1
- [ ] Subtask 1.2
- [ ] Task 2
Will be rendered as:
<https://example.com>
<email@example.com>
Will be rendered as:
https://example.com
email@example.com
[Link to example.com](https://example.com/)
Will be renderd as:
[Link to example.com](https://example.com/ "Title")
Will be renderd as:
Add two spaces (denoted as ␣␣
) at the end of a line, then press Enter. The ↵
characters denote a line break. This inserts a line break (<br>
).
First line.␣␣↵
Second line.
Will be rendered as:
First line.
Second line.
Insert a blank line between two lines of text (new paragraph).
First line.↵
↵
Second line.
Will be rendered as:
First line.
Second line.
alt
-Attribute #![ditig.com Logo](https://www.ditig.com/assets/graphics/logo_black.svg)
Will be rendered as:
alt
and title
-Attributes #![ditig.com Logo](https://www.ditig.com/assets/graphics/logo_black.svg "University of Hard Knocks (UHK) · Department of Information Technology Instructions & Guides (DITIG).")
Will be rendered as:
[![ditig.com Logo](https://www.ditig.com/assets/graphics/logo_black.svg "University of Hard Knocks (UHK) · Department of Information Technology Instructions & Guides (DITIG).")](https://www.ditig.com/)
Will be rendered as:
Put blank lines before and after blockquotes.
> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam ultrices, odio non dapibus egestas, enim mauris euismod dolor, nec vehicula neque metus quis elit.
Will be rendered as:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam ultrices, odio non dapibus egestas, enim mauris euismod dolor, nec vehicula neque metus quis elit.
> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam ultrices, odio non dapibus egestas, enim mauris euismod dolor, nec vehicula neque metus quis elit.
>
> Vivamus laoreet tortor quis lacus porta, a pretium lorem convallis.
Will be rendered as:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam ultrices, odio non dapibus egestas, enim mauris euismod dolor, nec vehicula neque metus quis elit.
Vivamus laoreet tortor quis lacus porta, a pretium lorem convallis.
> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam ultrices, odio non dapibus egestas, enim mauris euismod dolor, nec vehicula neque metus quis elit.
>> Nulla vehicula id sapien ut feugiat. In elit eros, sodales a elit vitae, posuere posuere turpis. Curabitur tristique euismod tempus.
>
> Vivamus laoreet tortor quis lacus porta, a pretium lorem convallis.
Will be rendered as:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam ultrices, odio non dapibus egestas, enim mauris euismod dolor, nec vehicula neque metus quis elit.
Nulla vehicula id sapien ut feugiat. In elit eros, sodales a elit vitae, posuere posuere turpis. Curabitur tristique euismod tempus.
Vivamus laoreet tortor quis lacus porta, a pretium lorem convallis.
> #### Lorem Ipsum Dolor
> Lorem ipsum dolor sit amet, _consectetur_ adipiscing elit. Nam ultrices, odio non dapibus egestas, enim mauris euismod dolor, nec vehicula neque metus quis elit.
>> Nulla vehicula id sapien ut feugiat. In elit eros, sodales a elit vitae, posuere posuere turpis. **Curabitur** tristique euismod tempus.
>
> Vivamus laoreet tortor quis lacus porta, a pretium **lorem convallis**.
Will be rendered as:
Lorem Ipsum Dolor #
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam ultrices, odio non dapibus egestas, enim mauris euismod dolor, nec vehicula neque metus quis elit.
Nulla vehicula id sapien ut feugiat. In elit eros, sodales a elit vitae, posuere posuere turpis. Curabitur tristique euismod tempus.
Vivamus laoreet tortor quis lacus porta, a pretium lorem convallis.
Use `code()` for inline code.
Will be rendered as:
Use code()
for inline code.
```
print("Hello, World!")
```
Will be rendered as:
print("Hello, World!")
Also see: Code blocks in markdown lists
| Header 1 | Header 2 |
|--- |--- |
| Row 1 | Data 1 |
| Row 2 | Data 2 |
Will be rendered as:
Header 1 | Header 2 |
---|---|
Row 1 | Data 1 |
Row 2 | Data 2 |
---
Will be rendered as:
Also:
***
Will be rendered as:
Use \
to escape special characters.
\*escaped asterisk\*
Will be rendered as:
*escaped asterisk*
Char | Character name |
---|---|
< > | angle brackets |
* | asterisk |
\ | backslash |
` | backtick |
[ ] | brackets |
{ } | curly braces |
. | dot |
! | exclamation mark |
- | minus sign (hyphen) |
( ) | parentheses |
| | pipe |
+ | plus sign |
# | pound sign |
_ | underscore |
<b>Bold with HTML</b>
<i>Italic with HTML</i>
<span style="color: red;">Red Text</span>
Will be rendered as:
Bold with HTML
Italic with HTML
Red Text
The following features are only supported in some (not all) Markdown processors, e.g. GitHub-flavored Markdown. These features extend Markdown’s basic syntax.
This is a sentence with a footnote.[^1]
[^1]: This is the footnote text.
Term 1
: Definition for term 1
Term 2
: Definition for term 2
```javascript
function greet() {
console.log("Hello, World!");
}
Will be rendered as:
function greet() {
console.log("Hello, World!");
}
:smile: :rocket: :sparkles:
Will be rendered as:
😄 🚀 ✨
### Heading with ID {#custom-id}
Will be rendered as:
<h3 id="custom-id">Heading with ID</h3>
Sources and recommended, further resources on the topic:
License: Markdown Cheat Sheet by Jonas Jared Jacek is licensed under CC BY-SA 4.0.
This license requires that reusers give credit to the creator. It allows reusers to distribute, remix, adapt, and build upon the material in any medium or format, for noncommercial purposes only. To give credit, provide a link back to the original source, the author, and the license e.g. like this:
<p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><a property="dct:title" rel="cc:attributionURL" href="https://www.ditig.com/publications/markdown-cheat-sheet">Markdown Cheat Sheet</a> by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://www.j15k.com/">Jonas Jared Jacek</a> is licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank" rel="license noopener noreferrer">CC BY-SA 4.0</a>.</p>
For more information see the DITig legal page.