This markdown file contains all the lessons and example code from Wes Bos' online course Mastering Markdown. It is meant to be a quick reference for all things markdown related.
Paragraph text can be a single line or multiple lines.
An empty line is needed to create separate paragraphs.
Example paragraph with multiple lines of text...Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.
Bold Text
**Bold Text**
Italic Text
_Italic Text_
Italic Text
*Italic Text*
Strikethrough Text
~~Strikethrough Text~~
Headings create IDs for anchor linking which can come in handy for a table of contents.
Note: Headings created with hashes have up to 6 variations.
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
You need atleast 3 symbols to trigger this style of heading.
Note: This heading style only has 2 variations (Heading 1 & 2).
Heading 1
==================
Heading 2
------------------
<http://thadbriggs.com>
[Link Text](http://thadbriggs.com)
Hover over the link to view the title text.
[Link Text](http://thadbriggs.com "This is a link to my site.")
Footnote links can improve readability which comes in handy when a link is embedded within paragraph text. Here is an example of an embedded link:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Nullam id dolor id nibh ultricies vehicula ut id elit. Sit Amet Pharetra Link Text Adipiscing Amet Sem Mollis.
Example link w/key:
[Link Text][1]
Example footnote key defined at bottom of the document:
[1]: http://thadbriggs.com
![Alt text for the image](http://unsplash.it/50/50?random "Title text for image")
[ ![Alt text for the image](http://unsplash.it/50/50?image=500) ](http://unsplash.it/500/500?image=500 "Title text for link")
[ <img src="http://unsplash.it/50/50?image=250" alt="Alt text"> ](http://unsplash.it/500/500?image=250 "Title text for link")
[ <img src="images/image-thumb.jpg" alt="Alt text"> ](images/image.jpg "Title text for link")
Bullets can be created with * or + symbols.
- List Item 1
- List Item 2
- List Item 3
- List Item 4
+ List Item 1
* List Item 2
+ List Item 3
* List Item 4
- List Item 1
- List Item 2
- List Item 3
- List Item 4
Start each ordered list with 1.
so that numbering automatically updates when new items are added.
1. List Item 1
1. List Item 2
1. List Item 3
1. List Item 4
- List Item 1
- Nested Item
- List Item 2
- Nested Item
- List Item 3
- Nested Item
- List Item 4
1. List Item 1
* Nested Item
1. List Item 2
1. Nested Item
1. List Item 3
+ Nested Item
1. List Item 4
Single
Line Break
Single<br>
Line Break
Double
Line Break
Simply add a return between lines to create a double line break.
Double
Line Break
Element or text before rule
Element or text after rule
Element or text before rule
---
Element or text after rule
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Maecenas sed diam eget risus varius blandit sit amet non magna. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.
— Quote Byline
> Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Maecenas sed diam eget risus varius blandit sit amet non magna. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.
>
> — Quote Byline
const x = 1 + 5;
const y = x + 3;
const x = 1 + 5;
const y = x + 3;
Define the code language to allow syntax highlighting.
const m = 1 + 5;
const n = m + 3;
Example:
```js
const m = 1 + 5;
const n = m + 3;
```
const m = 1 + 5;
- const n = m + 3;
+ const n = b + 3;
Example:
```diff
const m = 1 + 5;
− const n = m + 3;
+ const n = b + 3;
```
Hey did you try this code var x = 100;
?
Example: Hey did you try this code `var x = 100;`?
Use pipes | to seperate columns and cells. Align text with the use of colons. Colon on the left (left-align), colon on right (right-align), colons on both sides (center-align).
Column 1 Title | Column 2 Title |
---|---|
Row 1/Cell 1 | Row 1/Cell 2 |
Row 2/Cell 1 | Row 2/Cell 2 |
|Column 1 Title|Column 2 Title|
|:------------:|:------------:|
|Row 1/Cell 1|Row 1/Cell 2|
|Row 2/Cell 1|Row 2/Cell 2|
- Get Milk
- Crack Eggs
- Cook Bacon
* [ ] Get Milk
* [x] Crack Eggs
* [ ] Cook Bacon