Update from Forestry.io

Thorben updated content/post/markdown-syntax.md
This commit is contained in:
Thorben
2020-01-28 10:48:15 +00:00
committed by Forestry.io
parent 436e0f3c9c
commit ad46e10b02
+42 -43
View File
@@ -1,23 +1,15 @@
+++
author = "Hugo Authors"
title = "Markdown Syntax Guide"
date = "2019-03-11"
description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
tags = [
"markdown",
"css",
"html",
"themes",
]
categories = [
"themes",
"syntax",
]
series = ["Themes Guide"]
aliases = ["migrate-from-jekyl"]
author = "Hugo Authors"
categories = ["themes", "syntax"]
date = 2019-03-11T00:00:00Z
description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
feature_image = "/images/francesco-ungaro-GX81x7KTfIw-unsplash.jpg"
+++
series = ["Themes Guide"]
tags = ["markdown", "css", "html", "themes"]
title = "Markdown 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.
<!--more-->
@@ -25,11 +17,18 @@ This article offers a sample of basic Markdown syntax that can be used in Hugo c
The following HTML `<h1>``<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
warum geht das nicht
# H1
## H2
### H3
#### H4
##### H5
###### H6
## Paragraph
@@ -45,48 +44,47 @@ The blockquote element represents content that is quoted from another source, op
#### Blockquote without attribution
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
> **Note** that you can use *Markdown syntax* within a blockquote.
> **Note** that you can use _Markdown syntax_ within a blockquote.
#### Blockquote with attribution
> Don't communicate by sharing memory, share memory by communicating.</p>
> — <cite>Rob Pike[^1]</cite>
> — <cite>Rob Pike\[^1\]</cite>
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
\[^1\]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
## Tables
Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
Name | Age
--------|------
| Name | Age |
Bob | 27
Alice | 23
Alice | 23
#### Inline Markdown within tables
| Inline&nbsp;&nbsp;&nbsp; | Markdown&nbsp;&nbsp;&nbsp; | In&nbsp;&nbsp;&nbsp; | Table |
| ---------- | --------- | ----------------- | ---------- |
| *italics* | **bold** | ~~strikethrough~~&nbsp;&nbsp;&nbsp; | `code` |
| Inline    | Markdown    | In    | Table |
| --- | --- | --- | --- |
| italics | bold | strikethrough    | code |
## Code Blocks
#### Code block with backticks
```
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
```
html
<!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>
@@ -101,15 +99,16 @@ html
</html>
#### Code block with Hugo's internal highlight shortcode
{{< highlight html >}}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example HTML5 Document</title>
<meta charset="UTF-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
<p>Test</p>
</body>
</html>
{{< /highlight >}}
@@ -131,6 +130,7 @@ html
#### Nested list
* Item
1. First Sub-item
2. Second Sub-item
@@ -145,4 +145,3 @@ X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.