Markdown 1 Syntax Guide

This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.

Headings

The following HTML <h1><h6> elements represent six levels of section headings. <h1> is the highest section level while <h6> is the lowest.

1# H1
2## H2
3### H3
4#### H4
5##### H5
6###### H6

H1

H2

H3

H4

H5
H6

Paragraph

Xerum, whither I will or will not explain who is in pain. When the water comes with pleasure, it is brought to you by the pain of the pain, or the parist, or the dollo, for he who grieves with pleasure is experienced in the matter, or the things which he may lie in contact with, and you will be moved as cus worthy to be covered, will he have an obligation to follow the heart of the things that are the same? For the pig is to be raised, when it is situated on a raft or all the other birds? Because For, I am all the face of the core, and they annoy others, and evelece he invites them, so that I may either call them, or if I may cast them in flight. Ri hates, to which the water will cover and face itself you are exerum sate edifice pains and dew those, temped molorro ration will volorro you with pains sperchicium faceata tiatia prat.

It goes? Since you’re a sack, you won’t see anything you hate or hate on it.

Blockquotes

The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a footer or cite element, and optionally with in-line changes such as annotations and abbreviations.

Blockquote without attribution

1> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
2> **Note** that you can use *Markdown syntax* within a blockquote.

Tiam, ad mint andaepu dandae nostion secatur sequo quae. Note that you can use Markdown syntax within a blockquote.

Blockquote with attribution

1> Don't communicate by sharing memory, share memory by communicating.<br>
2> — <cite>Rob Pike[^1]</cite>
3
4[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.

Don’t communicate by sharing memory, share memory by communicating. — Rob Pike1

Tables

Tables aren’t part of the core Markdown spec, but Hugo supports supports them out-of-the-box.

NameAge
Bob27
Alice23

Inline Markdown within tables

ItalicsBoldCode
italicsboldcode

Code Blocks

Code block with backticks

 1<!doctype html>
 2<html lang="en">
 3<head>
 4  <meta charset="utf-8">
 5  <title>Example HTML5 Document</title>
 6</head>
 7<body>
 8  <p>Test</p>
 9</body>
10</html>

Code block with Hugo’s internal highlight shortcode

 1<!doctype html>
 2<html lang="en">
 3<head>
 4  <meta charset="utf-8">
 5  <title>Another Example HTML5 Document</title>
 6</head>
 7<body>
 8  <p>A looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong text</p>
 9</body>
10</html>

List Types

Ordered List

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

Unordered List

  • List item
  • Another item
  • And another item
  • List item
  • Another item
  • And another item

Nested List

  • Fruit
    • Apple
    • Orange
    • Banana
  • Dairy
    • Milk
    • Cheese

TODO List

  • Done
  • WIP

Other Elements — abbr, sub, sup, kbd, mark

GIF is a bitmap image format.

H2O

Xn + Yn = Zn

Press CTRL+ALT+Delete to end the session.

Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.


  1. The above quote is excerpted from Rob Pike’s talk during Gopherfest, November 18, 2015. ↩︎


600 Words|This article has been read times