image cannot be displayed

Chia-Yang, Lin

every champion was once a beginner

CY_L

1-Minute Read

This article is about how to apply basic Markdown syntax in Hugo content file

Headings

<h1><h6> elements represent six levels of section headings.

h1

h2

h3

h4

h5
h6

Paragraph

paragraph

newline example

Blockquotes

hello

Blockquote without attribution

This is the example of blocquote without attribution Note that you can use Markdown syntax within a blockquote.

Blockquote with attribution

This is the example of blocquote without attribution

To be, or not to be, that is the question.

WILLIAM SHAKESPEARE1

Using First Sub-item

Tables

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

Name Age
Bob 27
Alice 23

Inline Markdown within tables

Inline    Markdown    In    Table
italics bold strikethrough    code

Code Blocks

Code block with backticks

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Example HTML5 Document</title>
</head>
<body>
  <p>Test</p>
</body>
</html>

Code block indented with four spaces

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Example HTML5 Document</title>
</head>
<body>
  <p>Test</p>
</body>
</html>

Code block with Hugo’s internal highlight shortcode

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Example HTML5 Document</title>
</head>
<body>
  <p>Test</p>
</body>
</html>

List Types

Ordered List

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

Unordered List

  • List item
  • Another item
  • And another item

Nested list

  • Item
    1. First Sub-item
    2. Second Sub-item

  1. The above quote is excerpted from Hamlet ↩︎

Say Something

Comments

Recent Posts

Categories