Introduction

This is bold text, and this is emphasized text.

Visit the Hugo website!

bla bla

Esse nisi proident sunt enim nisi duis commodo. Culpa pariatur sint nisi do reprehenderit sit et esse pariatur culpa do occaecat elit ad. Et nostrud id deserunt cillum nostrud ipsum eu commodo nisi aliquip excepteur in consectetur sit. Eu laborum culpa veniam esse incididunt officia est irure eu esse dolore dolore deserunt qui. Ut ex aliqua nisi anim aliquip ullamco consectetur voluptate. Amet occaecat sunt voluptate consequat commodo cupidatat veniam.

Sint tempor non occaecat dolor incididunt excepteur amet pariatur do ipsum eiusmod sint minim. Exercitation veniam laborum ea aute mollit ullamco nulla mollit et non fugiat esse. Occaecat proident dolor magna culpa.

bla bla

Et nisi consectetur mollit est. Enim esse pariatur duis est nisi exercitation enim. Amet cupidatat laboris dolor cillum sint sit nisi est sunt magna cillum pariatur consequat. Ullamco quis aute consequat do nostrud ea commodo. Dolore Lorem ad officia fugiat irure sit consequat aliqua culpa exercitation aliqua. Irure sint consectetur adipisicing ut sint eiusmod laborum est veniam dolor aliquip labore excepteur. Ad labore in consectetur reprehenderit veniam.

Inline Code

This is Inline Code

Only pre

Code block with backticks

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Example HTML5 Document</title>
    <meta
      name="description"
      content="Sample article showcasing basic Markdown syntax and formatting for HTML elements."
    />
  </head>
  <body>
    <p>Test</p>
  </body>
</html>

Code block with backticks and language specified

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Example HTML5 Document</title>
    <meta
      name="description"
      content="Sample article showcasing basic Markdown syntax and formatting for HTML elements."
    />
  </head>
  <body>
    <p>Test</p>
  </body>
</html>

Code block with backticks and language specified with line numbers

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Example HTML5 Document</title>
    <meta
      name="description"
      content="Sample article showcasing basic Markdown syntax and formatting for HTML elements."
    />
  </head>
  <body>
    <p>Test</p>
  </body>
</html>

Code block with line numbers and highlighted lines

  • PaperMod supports linenos=true or linenos=table
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Example HTML5 Document</title>
    <meta
      name="description"
      content="Sample article showcasing basic Markdown syntax and formatting for HTML elements."
    />
  </head>
  <body>
    <p>Test</p>
  </body>
</html>
  • With linenos=inline line might not get highlighted properly.
  • This issue is fixed with 045c084
 1<!DOCTYPE html>
 2<html lang="en">
 3  <head>
 4    <meta charset="utf-8" />
 5    <title>Example HTML5 Document</title>
 6    <meta
 7      name="description"
 8      content="Sample article showcasing basic Markdown syntax and formatting for HTML elements."
 9    />
10  </head>
11  <body>
12    <p>Test</p>
13  </body>
14</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>

Github Gist