Writing2 of 9

Markdown

Markdown is plain text with a few symbols for headings, lists, links and emphasis. Here's everything you need for most pages, side by side with how it looks.

2 min read

On this page

You write pages in Markdown, and HotDog turns it into a web page. Here's a short page of Markdown:

Markdown source: a heading, a paragraph with bold, italic, code and a link, a list, a numbered list, a quote and a table

And here's how it looks on the site:

The same page on the site: a heading, formatted text, two lists, a quote with a colored bar and a table

Headings

Start a line with # signs and a space. Two ## for a main heading within the page, three ### for a smaller one under it:

## Opening hours
### Holidays

The page's title (from the front matter) is its only top heading, so start your own headings at ##. Don't skip levels: a ### belongs under a ##.

Paragraphs and line breaks

Leave an empty line between paragraphs. Lines next to each other join up into one paragraph, so you can wrap long lines however you like.

Bold, italic and code

**bold**, *italic*, `a command or file name`
[Read our menu](/menu/)
[Our supplier](https://example.org)

The words people click go in square brackets, the address in round ones. Addresses on your own site start with /.

Lists

- An item
- Another item
  - An item inside it (two spaces in)

1. First step
2. Second step

Pictures

![What the picture shows](/media/2026/10/new-oven.jpg)

The words in square brackets describe the picture for people who can't see it. See Pictures.

Quotes and notes

Start the line with >:

> We're closed on Thursday for the holiday.

Tables

| Day | Hours |
|---|---|
| Monday to Friday | 7am to 6pm |
| Saturday | 8am to 2pm |

The second line, with the dashes, separates the heading row from the rest. The columns don't need to line up in your file.

For a bigger table, or one you keep in a spreadsheet, the tables pack shows a spreadsheet saved as CSV, and it updates whenever you save the sheet again.

Code blocks

For commands or text that must appear exactly as typed, put three backticks on the lines before and after:

```
hotdog-cms serve
```

A line across the page

Three dashes on a line of their own, with an empty line above: ---.

Notes, tabs and keys

These make a page of instructions easier to follow. They're the same as in MkDocs, so pages written for it work here unchanged.

A note that stands out. Three exclamation marks, the kind of note, and a title in quotes if you want one. What's in the note is indented by four spaces:

!!! tip "Before you start"

    Make a copy of your site's folder.

Before you start

Make a copy of your site's folder.

The kinds are note, tip, info, success, question, warning, danger, bug, example and quote, each in its own color. The title can have code and bold in it.

A note that opens when clicked. Use ??? instead of !!!, or ???+ to start it open. It's good for the reasons behind a step, which not everyone wants to read:

??? info "Why port 8080?"

    The server inside the container doesn't run as root.
Why port 8080?

The server inside the container doesn't run as root.

Tabs, for the same step on different systems. Each tab starts with === and its name in quotes, with its content indented:

=== "Linux"

    Open a terminal.

=== "Windows"

    Open PowerShell.

Open a terminal.

Open PowerShell.

Keys to press: ++ctrl+k++ shows Ctrl+K. Names like enter, esc, tab, shift, alt, cmd and the arrows (up, down) all work.

A file's name over a code block: put it after the language, ```yaml title="site.yaml":

site.yaml
name: My bakery

Terms and what they mean, one under the other:

Front matter
:   The settings at the top of a page, between two lines of dashes.
Front matter
The settings at the top of a page, between two lines of dashes.

Links to another page's file. [Pictures](pictures.md) goes to the Pictures page, wherever it ends up. hotdog-cms check tells you about a link to a file that isn't a page.

Rather not write Markdown?

The editor's visual mode works like a word processor, with a toolbar for headings, lists, links and pictures, and saves Markdown for you.

↑↓ moveEnter openEsc close