Skip to content

This markdown file contains all the lessons and example code from Wes Bos' online course Mastering Markdown (https://masteringmarkdown.com). It is meant to be a quick reference for all things markdown related.

TJBriggs/mastering-markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 

Repository files navigation

Mastering Markdown

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

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.


Text Styling

Bold Text

**Bold Text**


Italic Text

_Italic Text_


Italic Text

*Italic Text*


Strikethrough Text

~~Strikethrough Text~~


Headings

Hashed Headings

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

	# Heading 1
	## Heading 2
	### Heading 3
	#### Heading 4
	##### Heading 5
	###### Heading 6

Alternative Headings

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


	Heading 1
	==================

	Heading 2
	------------------

Links

URL link

http://thadbriggs.com

<http://thadbriggs.com>


Bracket Link

Link Text

[Link Text](http://thadbriggs.com)


Bracket Link w/Title Text

Hover over the link to view the title text.

Link Text

[Link Text](http://thadbriggs.com "This is a link to my site.")


Footnote Link

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


Images

Bracket Image

Alt text for the image

![Alt text for the image](http://unsplash.it/50/50?random "Title text for image")


Bracket Image w/Link

Alt text for the image

[ ![Alt text for the image](http://unsplash.it/50/50?image=500) ](http://unsplash.it/500/500?image=500 "Title text for link")


HTML Image w/Link

Alt text

[ <img src="http://unsplash.it/50/50?image=250" alt="Alt text"> ](http://unsplash.it/500/500?image=250 "Title text for link")

Internal Image w/Link

Alt text

[ <img src="images/image-thumb.jpg" alt="Alt text"> ](images/image.jpg "Title text for link")


Lists

Unordered list

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

Ordered List

  1. List Item 1
  2. List Item 2
  3. List Item 3
  4. 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

Nested List

  1. List Item 1
    • Nested Item
  2. List Item 2
    1. Nested Item
  3. List Item 3
    • Nested Item
  4. 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	

Line Breaks, Horizontal Rules and BlockQuotes

Single Line Break

Single
Line Break

	Single<br>
	Line Break

Double Line Break

Double

Line Break

Simply add a return between lines to create a double line break.

	Double

	Line Break


Horizontal Rule

Element or text before rule


Element or text after rule

	Element or text before rule

	---

	Element or text after rule

BlockQuote

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

Code

Code Block - Indentation

const x = 1 + 5;
const y = x + 3;
	const x = 1 + 5;
	const y = x + 3;

Code Block - Back Ticks

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;
```


Diff Code Block

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;
```


Inline Code

Hey did you try this code var x = 100;?

Example: Hey did you try this code `var x = 100;`?


Tables

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|

Checkboxes

  • Get Milk
  • Crack Eggs
  • Cook Bacon
	* [ ] Get Milk
	* [x] Crack Eggs
	* [ ] Cook Bacon

About

This markdown file contains all the lessons and example code from Wes Bos' online course Mastering Markdown (https://masteringmarkdown.com). It is meant to be a quick reference for all things markdown related.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published