Markdown Syntax Overview

This page provides an overview of the Markdown syntax supported by Hugo, along with some additional features and extensions.

Basic Syntax

Below are examples of basic Markdown syntax elements.

Headings

H1 Heading

H2 Heading

H3 Heading

H4 Heading

H5 Heading
H6 Heading

Emphasis

italic text or italic text bold text or bold text bold and italic or bold and italic strikethrough

Lists

Unordered Lists:

  • Item 1
  • Item 2
    • Nested item
    • Another nested item

Ordered Lists:

  1. First item
  2. Second item
  3. Third item

Link text Link with title

Images

Alt text Alt text

Blockquotes

This is a blockquote It can span multiple lines

Code

Inline code: Use code for inline code snippets

Code blocks:

def hello_world():
        print("Hello, World!")

Code Blocks with Highlighting:

1package main
2
3import "fmt"
4
5func main() {
6    for i := 0; i < 3; i++ {
7        fmt.Println("Value of i:", i)
8    }
9}

Horizontal Rules




Extended Syntax

Tables

Header 1Header 2Header 3
Cell 1Cell 2Cell 3
Cell 4Cell 5Cell 6

Task Lists

  • Completed task
  • Incomplete task
  • Another task

Footnotes

Here’s a sentence with a footnote1.

Definition Lists

Term
Definition of the term

Automatic URL Linking

https://example.com

Escaping Characters

* Escaped asterisk _ Escaped underscore ` Escaped backtick


  1. This is the footnote content. ↩︎