The Markdown language

Yes, this is still a book about Swift, but let’s take a minute to have a look at the Markdown language.

Language is a big word. Unlike with other programming languages, you can become proficient in Markdown in a few minutes.

Markdown allows for a lightweight annotation of your text so it can be structured and rendered without impeding the readability of the raw code:

A Simple Tomato Sauce

This is a simple tomato sauce recipe

You can add a title with the # sign or by underlining with = or -

# List of ingredients

Below is a simple unordered list, any one of the -, + • or * character will make for a new list item

- Tomatoes
- Garlic
- Basil
- Pecorino romano

Using more than one # character lets you add a sub level to your titles.

## From your pantry

- Olive oil
- Salt, pepper

Lastly, you can create ordered lists using regular numbers. You do not have to count the number, always using 1 works perfectly well

# Recipe

1. Cook the garlic over medium heat
1. Once golden, add the sliced tomatoes and a cup of water
1. Bring to a boil, and reduce to a simmer
1. Add salt, pepper, basil

There is one gotcha: if you are familiar with Markdown already, you know that tables are not supported.