A simple markdown tutorial.
In this section, we talk about the different types of lists and links.
There are two types of lists: unordered and numbered. Here’s how to do both.
To create an unordered list, simply put several different words on newlines, with asterisks (*) before each one. So the list below:
would look like this in markdown:
* Eggs
* Milk
* Spinach
* Bread
* Cheese
To create a numbered list, all you have to do is write the numbers in order from 1 (with a period in front of it. So the list below:
would look like this in markdown:
1. Line 1
2. Line 2
3. This is line 3
4. Line 4
There are two ways to create a link in markdown: a one-time link and a reusable link. If you are planning to link one page several times in a document, reusable links are better. If you are planning to link one page once, use a one-time link.
To create a one-time link, follow this syntax:
lorem ipsum [text you want to highlight](linktoredirect.to)
For instance,
Learn more about markdown, click here.
Note: These are sometimes called “reference links”.
To create a reusable link, follow this syntax:
lorem ipsum [text you want to highlight][link name].
[link name]: linktoredirect.to
For instance,
Google is a great search engine, though lacking in privacy. It’s home page allows you to explore the internet with ease.
To create a relative link (if you are redirecting to a file on your computer), include the relative path. For instance,
the previous chapter of the tutorial
To create a URL, include the https:// link.
To include images, follow this syntax:
!(alt-text)[link to image]
For instance:
../README.md
.