Markdown Syntax Guide

Headings

Markdown supports six levels of headings:

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Emphasis

You can add emphasis to your text:

This text is italicized This is also italicized

This text is bold This is also bold

This text is bold and italic This is also bold and italic

Lists

Unordered Lists

  • First item
  • Second item
    • Nested item
    • Another nested item
  • Third item

Ordered Lists

  1. First item
  2. Second item
    1. Nested item
    2. Another nested item
  3. Third item

This is a link to Hugo

This is a link with a title

Images

Alt text for image

Code

Inline Code

Use backticks for inline code.

Code Blocks

// JavaScript code
function greet(name) {
  console.log(`Hello, ${name}!`);
}

greet('World');
# Python code
def greet(name):
    print(f"Hello, {name}!")

greet("World")

Blockquotes

This is a blockquote. It can span multiple lines.

Blockquotes can be nested.

Tables

Header 1Header 2Header 3
Cell 1Cell 2Cell 3
Cell 4Cell 5Cell 6
Cell 7Cell 8Cell 9

Horizontal Rules

Use three or more hyphens, asterisks, or underscores:




Task Lists

  • Completed task
  • Uncompleted task
  • Another completed task

Footnotes

Here’s a sentence with a footnote1.

HTML

You can also use HTML tags directly in Markdown.

Click to expand

This is hidden content that can be expanded.

Conclusion

This guide covers the most common Markdown syntax elements. The Bootstrap Blog theme renders all of these elements beautifully with proper styling.


  1. This is the footnote content. ↩︎