mirror of
https://github.com/Threnklyn/casper3-hugo-starter.git
synced 2026-05-18 20:13:28 +02:00
Update from Forestry.io
Thorben updated content/post/markdown-syntax.md
This commit is contained in:
@@ -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"]
|
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"
|
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.
|
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-->
|
<!--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.
|
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
|
# H1
|
||||||
|
|
||||||
## H2
|
## H2
|
||||||
|
|
||||||
### H3
|
### H3
|
||||||
|
|
||||||
#### H4
|
#### H4
|
||||||
|
|
||||||
##### H5
|
##### H5
|
||||||
|
|
||||||
###### H6
|
###### H6
|
||||||
|
|
||||||
## Paragraph
|
## Paragraph
|
||||||
@@ -45,48 +44,47 @@ The blockquote element represents content that is quoted from another source, op
|
|||||||
#### Blockquote without attribution
|
#### Blockquote without attribution
|
||||||
|
|
||||||
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
|
> 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
|
#### Blockquote with attribution
|
||||||
|
|
||||||
> Don't communicate by sharing memory, share memory by communicating.</p>
|
> 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
|
||||||
|
|
||||||
Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
|
Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
|
||||||
|
|
||||||
Name | Age
|
| Name | Age |
|
||||||
--------|------
|
|
||||||
Bob | 27
|
Bob | 27
|
||||||
Alice | 23
|
|
||||||
|
Alice | 23
|
||||||
|
|
||||||
#### Inline Markdown within tables
|
#### Inline Markdown within tables
|
||||||
|
|
||||||
| Inline | Markdown | In | Table |
|
| Inline | Markdown | In | Table |
|
||||||
| ---------- | --------- | ----------------- | ---------- |
|
| --- | --- | --- | --- |
|
||||||
| *italics* | **bold** | ~~strikethrough~~ | `code` |
|
| italics | bold | strikethrough | code |
|
||||||
|
|
||||||
## Code Blocks
|
## Code Blocks
|
||||||
|
|
||||||
#### Code block with backticks
|
#### Code block with backticks
|
||||||
|
|
||||||
```
|
html
|
||||||
html
|
<!DOCTYPE html>
|
||||||
<!DOCTYPE html>
|
<html lang="en">
|
||||||
<html lang="en">
|
<head>
|
||||||
<head>
|
<meta charset="UTF-8">
|
||||||
<meta charset="UTF-8">
|
<title>Example HTML5 Document</title>
|
||||||
<title>Example HTML5 Document</title>
|
</head>
|
||||||
</head>
|
<body>
|
||||||
<body>
|
<p>Test</p>
|
||||||
<p>Test</p>
|
</body>
|
||||||
</body>
|
</html>
|
||||||
</html>
|
|
||||||
```
|
|
||||||
#### Code block indented with four spaces
|
#### Code block indented with four spaces
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
@@ -101,15 +99,16 @@ html
|
|||||||
</html>
|
</html>
|
||||||
|
|
||||||
#### Code block with Hugo's internal highlight shortcode
|
#### Code block with Hugo's internal highlight shortcode
|
||||||
|
|
||||||
{{< highlight html >}}
|
{{< highlight html >}}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Example HTML5 Document</title>
|
<title>Example HTML5 Document</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<p>Test</p>
|
<p>Test</p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
{{< /highlight >}}
|
{{< /highlight >}}
|
||||||
@@ -131,6 +130,7 @@ html
|
|||||||
#### Nested list
|
#### Nested list
|
||||||
|
|
||||||
* Item
|
* Item
|
||||||
|
|
||||||
1. First Sub-item
|
1. First Sub-item
|
||||||
2. Second 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.
|
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.
|
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user