Hugo Markdown Cheatsheet

Every section below shows rendered output (if applicable) and a copyable example block showing exactly how to write it.


Headings

Rendered

H1 — Big Title

H2 — Section

H3 — Subsection

H4

H5
H6

Copyable

# H1 — Big Title
## H2 — Section
### H3 — Subsection
#### H4
##### H5
###### H6

Emphasis

Rendered

Italic Bold Bold Italic Strikethrough Inline code

Copyable

*Italic*  
**Bold**  
***Bold Italic***  
~~Strikethrough~~  
`Inline code`

Paragraphs & Line Breaks

Rendered

A blank line makes a new paragraph. Add two spaces at line end for a manual line break. Like this.

Copyable

A blank line makes a new paragraph.
Add two spaces at line end for a manual line break.  
Like this.

Blockquotes

Rendered

Single paragraph quote

Multiple paragraphs are okay.

Nested:

Deeper quote

Copyable

> Single paragraph quote
>
> Multiple paragraphs are okay.

> Nested:
>> Deeper quote

Lists

Rendered

Unordered

  • One

  • Two

    • Two A
    • Two B
  • Three

Ordered

  1. First

  2. Second

    1. Second A
    2. Second B
  3. Third

Task Lists

Copyable

- One
- Two
  - Two A
  - Two B
- Three

1. First
2. Second
   1. Second A
   2. Second B
3. Third

- [x] Done
- [ ] To do

Rendered

Inline link

Inline with title

Reference style:

Copyable

[Inline link](https://example.com)

[Inline with title](https://example.com "Title text")

Reference style: [Example][ex]

[ex]: https://example.com "Optional title"

Images

Rendered

Alt text

Caption shown under image

Copyable

![Alt text for accessibility](/path/to/image.jpg "Optional title")
Alt text

Caption shown under image


Code

Rendered

console.log("Hello world!")

Copyable

```js
console.log("Hello world!")



Tables

Rendered

Feature Works Notes
Tables Standard Markdown
Footnotes Goldmark

Copyable

| Feature | Works | Notes |
|---|---|---|
| Tables | ✅ | Standard Markdown |
| Footnotes | ✅ | Goldmark |

Footnotes

Rendered

Footnote example.

Copyable

Footnote example.[^a]

[^a]: This is the first footnote.

Horizontal Rule

Rendered


Copyable

---

Shortcodes — Embeds

YouTube


Vimeo


Gist



Tweet





Instagram



Image with caption:

Describe the image

Caption here

Task list:

- [ ] Item 1
- [ ] Item 2