Useful Markdown Commands

Table of Contents

Paragraph

The below are some useful commands to use when creating markdown files for web content.

Image

The following syntax includes an image.

![Landscape](1.jpg)

Landscape

Tables

Tables aren’t part of the core Markdown specification, but Hugo supports them:

NameAge
Alice33
Bob38
Charlie20

Code Blocks

Code block with backticks

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title> HTML5 Document</title>
</head>
<body>
  <p>Testing</p>
</body>
</html>

Code block with Hugo’s internal highlight shortcode

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>HTML5 Document</title>
</head>
<body>
  <p>Testing</p>
</body>
</html>

List Types

Ordered List

  1. 1st item
  2. 2nd item with some code in it
  3. 3rd item

Nested list

  • Sports
    • Football
    • Tennis
    • Golf
  • Car Brands
    • Porsche
    • Toyota