summaryrefslogtreecommitdiff
path: root/themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2022-10-21 21:01:11 +0200
committerChristoph Cullmann <cullmann@kde.org>2022-10-21 21:01:11 +0200
commit582a8a33aff644a6b07534aaf677973abc6f154c (patch)
tree069a34670b1b91041ef9f3fcb73192dd05c60963 /themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax
parent038eabdda56dbfdbbba4328ac035cc4d77e8d80d (diff)
use different theme that is a lot slimer
Diffstat (limited to 'themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax')
-rw-r--r--themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax/featured-image.pngbin171484 -> 0 bytes
-rw-r--r--themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax/index.en.md764
-rw-r--r--themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax/index.zh-cn.md771
3 files changed, 0 insertions, 1535 deletions
diff --git a/themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax/featured-image.png b/themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax/featured-image.png
deleted file mode 100644
index b31e1a5..0000000
--- a/themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax/featured-image.png
+++ /dev/null
Binary files differ
diff --git a/themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax/index.en.md b/themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax/index.en.md
deleted file mode 100644
index 86722df..0000000
--- a/themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax/index.en.md
+++ /dev/null
@@ -1,764 +0,0 @@
----
-weight: 4
-title: "Basic Markdown Syntax"
-date: 2019-12-01T21:57:40+08:00
-lastmod: 2020-01-01T16:45:40+08:00
-draft: false
-author: "Dillon"
-authorLink: "https://dillonzq.com"
-description: "This article shows the basic Markdown syntax and format."
-images: []
-resources:
-- name: "featured-image"
- src: "featured-image.png"
-
-tags: ["Markdown", "HTML"]
-categories: ["Markdown"]
-
-lightgallery: true
----
-
-This article offers a sample of basic Markdown syntax that can be used in Hugo content files.
-
-<!--more-->
-
-{{< admonition >}}
-This article is a shameful copy of the great [Grav original page](http://learn.getgrav.org/content/markdown).
-
-If you want to know about the extended Markdown syntax of **LoveIt** theme, please read [extended Markdown syntax page](../theme-documentation-content#extended-markdown-syntax).
-{{< /admonition >}}
-
-Let's face it: Writing content for the Web is tiresome. WYSIWYG editors help alleviate this task, but they generally result in horrible code, or worse yet, ugly web pages.
-
-**Markdown** is a better way to write **HTML**, without all the complexities and ugliness that usually accompanies it.
-
-Some of the key benefits are:
-
-1. Markdown is simple to learn, with minimal extra characters, so it's also quicker to write content.
-2. Less chance of errors when writing in Markdown.
-3. Produces valid XHTML output.
-4. Keeps the content and the visual display separate, so you cannot mess up the look of your site.
-5. Write in any text editor or Markdown application you like.
-6. Markdown is a joy to use!
-
-John Gruber, the author of Markdown, puts it like this:
-
-> The overriding design goal for Markdown’s formatting syntax is to make it as readable as possible.
-> The idea is that a Markdown-formatted document should be publishable as-is, as plain text,
-> without looking like it’s been marked up with tags or formatting instructions.
-> While Markdown’s syntax has been influenced by several existing text-to-HTML filters,
-> the single biggest source of inspiration for Markdown’s syntax is the format of plain text email.
->
-> {{< style "text-align: right;" >}}-- _John Gruber_{{< /style >}}
-
-Without further delay, let us go over the main elements of Markdown and what the resulting HTML looks like!
-
-{{< admonition tip >}}
-:(far fa-bookmark fa-fw): Bookmark this page for easy future reference!
-{{< /admonition >}}
-
-## 1 Headings
-
-Headings from `h2` through `h6` are constructed with a `#` for each level:
-
-```markdown
-## h2 Heading
-### h3 Heading
-#### h4 Heading
-##### h5 Heading
-###### h6 Heading
-```
-
-The HTML looks like this:
-
-```html
-<h2>h2 Heading</h2>
-<h3>h3 Heading</h3>
-<h4>h4 Heading</h4>
-<h5>h5 Heading</h5>
-<h6>h6 Heading</h6>
-```
-
-{{< admonition note "Heading IDs" >}}
-To add a custom heading ID, enclose the custom ID in curly braces on the same line as the heading:
-
-```markdown
-### A Great Heading {#custom-id}
-```
-
-The HTML looks like this:
-
-```html
-<h3 id="custom-id">A Great Heading</h3>
-```
-{{< /admonition >}}
-
-## 2 Comments
-
-Comments should be HTML compatible.
-
-```html
-<!--
-This is a comment
--->
-```
-
-Comment below should **NOT** be seen:
-
-<!--
-This is a comment
--->
-
-## 3 Horizontal Rules
-
-The HTML `<hr>` element is for creating a "thematic break" between paragraph-level elements.
-In Markdown, you can create a `<hr>` with any of the following:
-
-* `___`: three consecutive underscores
-* `---`: three consecutive dashes
-* `***`: three consecutive asterisks
-
-The rendered output looks like this:
-
-___
----
-***
-
-## 4 Body Copy
-
-Body copy written as normal, plain text will be wrapped with `<p></p>` tags in the rendered HTML.
-
-So this body copy:
-
-```markdown
-Lorem ipsum dolor sit amet, graecis denique ei vel, at duo primis mandamus. Et legere ocurreret pri,
-animal tacimates complectitur ad cum. Cu eum inermis inimicus efficiendi. Labore officiis his ex,
-soluta officiis concludaturque ei qui, vide sensibus vim ad.
-```
-
-The HTML looks like this:
-
-```html
-<p>Lorem ipsum dolor sit amet, graecis denique ei vel, at duo primis mandamus. Et legere ocurreret pri, animal tacimates complectitur ad cum. Cu eum inermis inimicus efficiendi. Labore officiis his ex, soluta officiis concludaturque ei qui, vide sensibus vim ad.</p>
-```
-
-A **line break** can be done with one blank line.
-
-## 5 Inline HTML
-
-If you need a certain HTML tag (with a class) you can simply use HTML:
-
-```html
-Paragraph in Markdown.
-
-<div class="class">
- This is <b>HTML</b>
-</div>
-
-Paragraph in Markdown.
-```
-
-## 6 Emphasis
-
-### Bold
-
-For emphasizing a snippet of text with a heavier font-weight.
-
-The following snippet of text is **rendered as bold text**.
-
-```markdown
-**rendered as bold text**
-__rendered as bold text__
-```
-
-The HTML looks like this:
-
-```html
-<strong>rendered as bold text</strong>
-```
-
-### Italics
-
-For emphasizing a snippet of text with italics.
-
-The following snippet of text is _rendered as italicized text_.
-
-```markdown
-*rendered as italicized text*
-_rendered as italicized text_
-```
-
-The HTML looks like this:
-
-```html
-<em>rendered as italicized text</em>
-```
-
-### Strikethrough
-
-In [[GFM]^(GitHub flavored Markdown)](https://github.github.com/gfm/) you can do strikethroughs.
-
-```markdown
-~~Strike through this text.~~
-```
-
-The rendered output looks like this:
-
-~~Strike through this text.~~
-
-The HTML looks like this:
-
-```html
-<del>Strike through this text.</del>
-```
-
-### Combination
-
-Bold, italics, and strikethrough can be used in combination.
-
-```markdown
-***bold and italics***
-~~**strikethrough and bold**~~
-~~*strikethrough and italics*~~
-~~***bold, italics and strikethrough***~~
-```
-
-The rendered output looks like this:
-
-***bold and italics***
-
-~~**strikethrough and bold**~~
-
-~~*strikethrough and italics*~~
-
-~~***bold, italics and strikethrough***~~
-
-The HTML looks like this:
-
-```html
-<em><strong>bold and italics</strong></em>
-<del><strong>strikethrough and bold</strong></del>
-<del><em>strikethrough and italics</em></del>
-<del><em><strong>bold, italics and strikethrough</strong></em></del>
-```
-
-## 7 Blockquotes
-
-For quoting blocks of content from another source within your document.
-
-Add `>` before any text you want to quote:
-
-```markdown
-> **Fusion Drive** combines a hard drive with a flash storage (solid-state drive) and presents it as a single logical volume with the space of both drives combined.
-```
-
-The rendered output looks like this:
-
-> **Fusion Drive** combines a hard drive with a flash storage (solid-state drive) and presents it as a single logical volume with the space of both drives combined.
-
-The HTML looks like this:
-
-```html
-<blockquote>
- <p>
- <strong>Fusion Drive</strong> combines a hard drive with a flash storage (solid-state drive) and presents it as a single logical volume with the space of both drives combined.
- </p>
-</blockquote>
-```
-
-Blockquotes can also be nested:
-
-```markdown
-> Donec massa lacus, ultricies a ullamcorper in, fermentum sed augue.
-Nunc augue augue, aliquam non hendrerit ac, commodo vel nisi.
->> Sed adipiscing elit vitae augue consectetur a gravida nunc vehicula. Donec auctor
-odio non est accumsan facilisis. Aliquam id turpis in dolor tincidunt mollis ac eu diam.
-```
-
-The rendered output looks like this:
-
-> Donec massa lacus, ultricies a ullamcorper in, fermentum sed augue.
-Nunc augue augue, aliquam non hendrerit ac, commodo vel nisi.
->> Sed adipiscing elit vitae augue consectetur a gravida nunc vehicula. Donec auctor
-odio non est accumsan facilisis. Aliquam id turpis in dolor tincidunt mollis ac eu diam.
-
-## 8 Lists
-
-### Unordered
-
-A list of items in which the order of the items does not explicitly matter.
-
-You may use any of the following symbols to denote bullets for each list item:
-
-```markdown
-* valid bullet
-- valid bullet
-+ valid bullet
-```
-
-For example:
-
-```markdown
-* Lorem ipsum dolor sit amet
-* Consectetur adipiscing elit
-* Integer molestie lorem at massa
-* Facilisis in pretium nisl aliquet
-* Nulla volutpat aliquam velit
- * Phasellus iaculis neque
- * Purus sodales ultricies
- * Vestibulum laoreet porttitor sem
- * Ac tristique libero volutpat at
-* Faucibus porta lacus fringilla vel
-* Aenean sit amet erat nunc
-* Eget porttitor lorem
-```
-
-The rendered output looks like this:
-
-* Lorem ipsum dolor sit amet
-* Consectetur adipiscing elit
-* Integer molestie lorem at massa
-* Facilisis in pretium nisl aliquet
-* Nulla volutpat aliquam velit
- * Phasellus iaculis neque
- * Purus sodales ultricies
- * Vestibulum laoreet porttitor sem
- * Ac tristique libero volutpat at
-* Faucibus porta lacus fringilla vel
-* Aenean sit amet erat nunc
-* Eget porttitor lorem
-
-The HTML looks like this:
-
-```html
-<ul>
- <li>Lorem ipsum dolor sit amet</li>
- <li>Consectetur adipiscing elit</li>
- <li>Integer molestie lorem at massa</li>
- <li>Facilisis in pretium nisl aliquet</li>
- <li>Nulla volutpat aliquam velit
- <ul>
- <li>Phasellus iaculis neque</li>
- <li>Purus sodales ultricies</li>
- <li>Vestibulum laoreet porttitor sem</li>
- <li>Ac tristique libero volutpat at</li>
- </ul>
- </li>
- <li>Faucibus porta lacus fringilla vel</li>
- <li>Aenean sit amet erat nunc</li>
- <li>Eget porttitor lorem</li>
-</ul>
-```
-
-### Ordered
-
-A list of items in which the order of items does explicitly matter.
-
-```markdown
-1. Lorem ipsum dolor sit amet
-2. Consectetur adipiscing elit
-3. Integer molestie lorem at massa
-4. Facilisis in pretium nisl aliquet
-5. Nulla volutpat aliquam velit
-6. Faucibus porta lacus fringilla vel
-7. Aenean sit amet erat nunc
-8. Eget porttitor lorem
-```
-
-The rendered output looks like this:
-
-1. Lorem ipsum dolor sit amet
-2. Consectetur adipiscing elit
-3. Integer molestie lorem at massa
-4. Facilisis in pretium nisl aliquet
-5. Nulla volutpat aliquam velit
-6. Faucibus porta lacus fringilla vel
-7. Aenean sit amet erat nunc
-8. Eget porttitor lorem
-
-The HTML looks like this:
-
-```html
-<ol>
- <li>Lorem ipsum dolor sit amet</li>
- <li>Consectetur adipiscing elit</li>
- <li>Integer molestie lorem at massa</li>
- <li>Facilisis in pretium nisl aliquet</li>
- <li>Nulla volutpat aliquam velit</li>
- <li>Faucibus porta lacus fringilla vel</li>
- <li>Aenean sit amet erat nunc</li>
- <li>Eget porttitor lorem</li>
-</ol>
-```
-
-{{< admonition tip >}}
-If you just use `1.` for each number, Markdown will automatically number each item. For example:
-
-```markdown
-1. Lorem ipsum dolor sit amet
-1. Consectetur adipiscing elit
-1. Integer molestie lorem at massa
-1. Facilisis in pretium nisl aliquet
-1. Nulla volutpat aliquam velit
-1. Faucibus porta lacus fringilla vel
-1. Aenean sit amet erat nunc
-1. Eget porttitor lorem
-```
-
-The rendered output looks like this:
-
-1. Lorem ipsum dolor sit amet
-1. Consectetur adipiscing elit
-1. Integer molestie lorem at massa
-1. Facilisis in pretium nisl aliquet
-1. Nulla volutpat aliquam velit
-1. Faucibus porta lacus fringilla vel
-1. Aenean sit amet erat nunc
-1. Eget porttitor lorem
-{{< /admonition >}}
-
-### Task Lists
-
-Task lists allow you to create a list of items with checkboxes. To create a task list, add dashes (`-`) and brackets with a space (`[ ]`) before task list items. To select a checkbox, add an x in between the brackets (`[x]`).
-
-```markdown
-- [x] Write the press release
-- [ ] Update the website
-- [ ] Contact the media
-```
-
-The rendered output looks like this:
-
-- [x] Write the press release
-- [ ] Update the website
-- [ ] Contact the media
-
-## 9 Code
-
-### Inline Code
-
-Wrap inline snippets of code with <code>`</code>.
-
-```markdown
-In this example, `<section></section>` should be wrapped as **code**.
-```
-
-The rendered output looks like this:
-
-In this example, `<section></section>` should be wrapped as **code**.
-
-The HTML looks like this:
-
-```html
-<p>
- In this example, <code>&lt;section&gt;&lt;/section&gt;</code> should be wrapped with <strong>code</strong>.
-</p>
-```
-
-### Indented Code
-
-Or indent several lines of code by at least four spaces, as in:
-
-```markdown
- // Some comments
- line 1 of code
- line 2 of code
- line 3 of code
-```
-
-The rendered output looks like this:
-
- // Some comments
- line 1 of code
- line 2 of code
- line 3 of code
-
-The HTML looks like this:
-
-```html
-<pre>
- <code>
- // Some comments
- line 1 of code
- line 2 of code
- line 3 of code
- </code>
-</pre>
-```
-
-### Block Fenced Code
-
-Use "fences" <code>```</code> to block in multiple lines of code with a language attribute.
-
-{{< highlight markdown >}}
-```markdown
-Sample text here...
-```
-{{< / highlight >}}
-
-The HTML looks like this:
-
-```html
-<pre language-html>
- <code>Sample text here...</code>
-</pre>
-```
-
-### Syntax Highlighting
-
-[GFM]^(GitHub Flavored Markdown) also supports syntax highlighting.
-
-To activate it, simply add the file extension of the language you want to use directly after the first code "fence",
-<code>```js</code>, and syntax highlighting will automatically be applied in the rendered HTML.
-
-For example, to apply syntax highlighting to JavaScript code:
-
-{{< highlight markdown >}}
-```js
-grunt.initConfig({
- assemble: {
- options: {
- assets: 'docs/assets',
- data: 'src/data/*.{json,yml}',
- helpers: 'src/custom-helpers.js',
- partials: ['src/partials/**/*.{hbs,md}']
- },
- pages: {
- options: {
- layout: 'default.hbs'
- },
- files: {
- './': ['src/templates/pages/index.hbs']
- }
- }
- }
-};
-```
-{{< / highlight >}}
-
-The rendered output looks like this:
-
-```js
-grunt.initConfig({
- assemble: {
- options: {
- assets: 'docs/assets',
- data: 'src/data/*.{json,yml}',
- helpers: 'src/custom-helpers.js',
- partials: ['src/partials/**/*.{hbs,md}']
- },
- pages: {
- options: {
- layout: 'default.hbs'
- },
- files: {
- './': ['src/templates/pages/index.hbs']
- }
- }
- }
-};
-```
-
-{{< admonition >}}
-[Syntax highlighting page](https://gohugo.io/content-management/syntax-highlighting/) in **Hugo** Docs introduces more about syntax highlighting, including highlight shortcode.
-{{< /admonition >}}
-
-## 10 Tables
-
-Tables are created by adding pipes as dividers between each cell, and by adding a line of dashes (also separated by bars) beneath the header. Note that the pipes do not need to be vertically aligned.
-
-```markdown
-| Option | Description |
-| ------ | ----------- |
-| data | path to data files to supply the data that will be passed into templates. |
-| engine | engine to be used for processing templates. Handlebars is the default. |
-| ext | extension to be used for dest files. |
-```
-
-The rendered output looks like this:
-
-| Option | Description |
-| ------ | ----------- |
-| data | path to data files to supply the data that will be passed into templates. |
-| engine | engine to be used for processing templates. Handlebars is the default. |
-| ext | extension to be used for dest files. |
-
-The HTML looks like this:
-
-```html
-<table>
- <thead>
- <tr>
- <th>Option</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>data</td>
- <td>path to data files to supply the data that will be passed into templates.</td>
- </tr>
- <tr>
- <td>engine</td>
- <td>engine to be used for processing templates. Handlebars is the default.</td>
- </tr>
- <tr>
- <td>ext</td>
- <td>extension to be used for dest files.</td>
- </tr>
- </tbody>
-</table>
-```
-
-{{< admonition note "Right or center aligned text" >}}
-Adding a colon on the right side of the dashes below any heading will right align text for that column.
-
-Adding colons on both sides of the dashes below any heading will center align text for that column.
-
-```markdown
-| Option | Description |
-|:------:| -----------:|
-| data | path to data files to supply the data that will be passed into templates. |
-| engine | engine to be used for processing templates. Handlebars is the default. |
-| ext | extension to be used for dest files. |
-```
-
-The rendered output looks like this:
-
-| Option | Description |
-|:------:| -----------:|
-| data | path to data files to supply the data that will be passed into templates. |
-| engine | engine to be used for processing templates. Handlebars is the default. |
-| ext | extension to be used for dest files. |
-{{< /admonition >}}
-
-## 11 Links {#links}
-
-### Basic Link
-
-```markdown
-<https://assemble.io>
-<contact@revolunet.com>
-[Assemble](https://assemble.io)
-```
-
-The rendered output looks like this (hover over the link, there is no tooltip):
-
-<https://assemble.io>
-
-<contact@revolunet.com>
-
-[Assemble](https://assemble.io)
-
-The HTML looks like this:
-
-```html
-<a href="https://assemble.io">https://assemble.io</a>
-<a href="mailto:contact@revolunet.com">contact@revolunet.com</a>
-<a href="https://assemble.io">Assemble</a>
-```
-
-### Add a Title
-
-```markdown
-[Upstage](https://github.com/upstage/ "Visit Upstage!")
-```
-
-The rendered output looks like this (hover over the link, there should be a tooltip):
-
-[Upstage](https://github.com/upstage/ "Visit Upstage!")
-
-The HTML looks like this:
-
-```html
-<a href="https://github.com/upstage/" title="Visit Upstage!">Upstage</a>
-```
-
-### Named Anchors
-
-Named anchors enable you to jump to the specified anchor point on the same page. For example, each of these chapters:
-
-```markdown
-## Table of Contents
- * [Chapter 1](#chapter-1)
- * [Chapter 2](#chapter-2)
- * [Chapter 3](#chapter-3)
-```
-
-will jump to these sections:
-
-```markdown
-## Chapter 1 <a id="chapter-1"></a>
-Content for chapter one.
-
-## Chapter 2 <a id="chapter-2"></a>
-Content for chapter one.
-
-## Chapter 3 <a id="chapter-3"></a>
-Content for chapter one.
-```
-
-{{< admonition >}}
-The specific placement of the anchor tag seems to be arbitrary. They are placed inline here since it seems to be unobtrusive, and it works.
-{{< /admonition >}}
-
-## 12 Footnotes
-
-Footnotes allow you to add notes and references without cluttering the body of the document. When you create a footnote, a superscript number with a link appears where you added the footnote reference. Readers can click the link to jump to the content of the footnote at the bottom of the page.
-
-To create a footnote reference, add a caret and an identifier inside brackets (`[^1]`). Identifiers can be numbers or words, but they can’t contain spaces or tabs. Identifiers only correlate the footnote reference with the footnote itself — in the output, footnotes are numbered sequentially.
-
-Add the footnote using another caret and number inside brackets with a colon and text (`[^1]: My footnote.`). You don’t have to put footnotes at the end of the document. You can put them anywhere except inside other elements like lists, block quotes, and tables.
-
-```markdown
-This is a digital footnote[^1].
-This is a footnote with "label"[^label]
-
-[^1]: This is a digital footnote
-[^label]: This is a footnote with "label"
-```
-
-This is a digital footnote[^1].
-
-This is a footnote with "label"[^label]
-
-[^1]: This is a digital footnote
-[^label]: This is a footnote with "label"
-
-## 13 Images
-
-Images have a similar syntax to links but include a preceding exclamation point.
-
-```markdown
-![Minion](https://octodex.github.com/images/minion.png)
-```
-
-![Minion](https://octodex.github.com/images/minion.png)
-
-or:
-
-```markdown
-![Alt text](https://octodex.github.com/images/stormtroopocat.jpg "The Stormtroopocat")
-```
-
-![Alt text](https://octodex.github.com/images/stormtroopocat.jpg "The Stormtroopocat")
-
-Like links, images also have a footnote style syntax:
-
-```markdown
-![Alt text][id]
-```
-
-![Alt text][id]
-
-With a reference later in the document defining the URL location:
-
-```markdown
-[id]: https://octodex.github.com/images/dojocat.jpg "The Dojocat"
-```
-
-[id]: https://octodex.github.com/images/dojocat.jpg "The Dojocat"
-
-{{< admonition tip >}}
-**LoveIt** theme has [special shortcode for image](../theme-documentation-extended-shortcodes#image), which provides more features.
-{{< /admonition >}}
diff --git a/themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax/index.zh-cn.md b/themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax/index.zh-cn.md
deleted file mode 100644
index 2d88270..0000000
--- a/themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax/index.zh-cn.md
+++ /dev/null
@@ -1,771 +0,0 @@
----
-weight: 4
-title: "Markdown 基本语法"
-date: 2019-12-01T21:57:40+08:00
-lastmod: 2020-01-01T16:45:40+08:00
-draft: false
-author: "Dillon"
-authorLink: "https://dillonzq.com"
-description: "这篇文章展示了基本的 Markdown 语法和格式."
-images: []
-resources:
-- name: "featured-image"
- src: "featured-image.png"
-
-tags: ["Markdown", "HTML"]
-categories: ["Markdown"]
-
-lightgallery: true
----
-
-这篇文章提供了可以在 Hugo 的文章中使用的基本 Markdown 语法示例.
-
-<!--more-->
-
-{{< admonition >}}
-这篇文章借鉴了一篇很棒的[来自 Grav 的文章](http://learn.getgrav.org/content/markdown).
-
-如果你想了解 **Loveit** 主题的扩展 Markdown 语法, 请阅读[扩展 Markdown 语法页面](../theme-documentation-content#extended-markdown-syntax).
-{{< /admonition >}}
-
-事实上, 编写 Web 内容很麻烦. [WYSIWYG]^(所见即所得) 编辑器帮助减轻了这一任务. 但通常会导致代码太糟, 或更糟糕的是, 网页也会很丑.
-
-没有通常伴随的所有复杂和丑陋的问题, **Markdown** 是一种更好的生成 **HTML** 内容的方式.
-
-一些主要好处是:
-
-1. Markdown 简单易学, 几乎没有多余的字符, 因此编写内容也更快.
-2. 用 Markdown 书写时出错的机会更少.
-3. 可以产生有效的 XHTML 输出.
-4. 将内容和视觉显示保持分开, 这样就不会打乱网站的外观.
-5. 可以在你喜欢的任何文本编辑器或 Markdown 应用程序中编写内容.
-6. Markdown 使用起来很有趣!
-
-John Gruber, Markdown 的作者如是说:
-
-> Markdown 格式的首要设计目标是更具可读性.
-> 最初的想法是 Markdown 格式的文档应当以纯文本形式发布,
-> 而不会看起来像被标签或格式说明所标记.
-> 虽然 Markdown 的语法受到几种现有的文本到 HTML 转换工具的影响,
-> 但 Markdown 语法的最大灵感来源是纯文本电子邮件的格式.
->
-> {{< style "text-align: right;" >}}-- _John Gruber_{{< /style >}}
-
-话不多说, 我们来回顾一下 Markdown 的主要语法以及生成的 HTML 样式!
-
-{{< admonition tip >}}
-:(far fa-bookmark fa-fw): 将此页保存为书签,以备将来参考!
-{{< /admonition >}}
-
-## 1 标题
-
-从 `h2` 到 `h6` 的标题在每个级别上都加上一个 `#`:
-
-```markdown
-## h2 标题
-### h3 标题
-#### h4 标题
-##### h5 标题
-###### h6 标题
-```
-
-输出的 HTML 看起来像这样:
-
-```html
-<h2>h2 标题</h2>
-<h3>h3 标题</h3>
-<h4>h4 标题</h4>
-<h5>h5 标题</h5>
-<h6>h6 标题</h6>
-```
-
-{{< admonition note "标题 ID" >}}
-要添加自定义标题 ID, 请在与标题相同的行中将自定义 ID 放在花括号中:
-
-```markdown
-### 一个很棒的标题 {#custom-id}
-```
-
-输出的 HTML 看起来像这样:
-
-```html
-<h3 id="custom-id">一个很棒的标题</h3>
-```
-{{< /admonition >}}
-
-## 2 注释
-
-注释是和 HTML 兼容的:
-
-```html
-<!--
-这是一段注释
--->
-```
-
-**不能**看到以下的注释:
-
-<!--
-这是一段注释
--->
-
-## 3 水平线
-
-HTML 中的 `<hr>` 标签是用来在段落元素之间创建一个 "专题间隔" 的.
-使用 Markdown, 你可以用以下方式创建一个 `<hr>` 标签:
-
-* `___`: 三个连续的下划线
-* `---`: 三个连续的破折号
-* `***`: 三个连续的星号
-
-呈现的输出效果如下:
-
-___
----
-***
-
-## 4 段落
-
-按照纯文本的方式书写段落, 纯文本在呈现的 HTML 中将用 `<p>`/`</p>` 标签包裹.
-
-如下段落:
-
-```markdown
-Lorem ipsum dolor sit amet, graecis denique ei vel, at duo primis mandamus. Et legere ocurreret pri,
-animal tacimates complectitur ad cum. Cu eum inermis inimicus efficiendi. Labore officiis his ex,
-soluta officiis concludaturque ei qui, vide sensibus vim ad.
-```
-
-输出的 HTML 看起来像这样:
-
-```html
-<p>Lorem ipsum dolor sit amet, graecis denique ei vel, at duo primis mandamus. Et legere ocurreret pri, animal tacimates complectitur ad cum. Cu eum inermis inimicus efficiendi. Labore officiis his ex, soluta officiis concludaturque ei qui, vide sensibus vim ad.</p>
-```
-
-可以使用一个空白行进行**换行**.
-
-## 5 内联 HTML 元素
-
-如果你需要某个 HTML 标签 (带有一个类), 则可以简单地像这样使用:
-
-```html
-Markdown 格式的段落.
-
-<div class="class">
- 这是 <b>HTML</b>
-</div>
-
-Markdown 格式的段落.
-```
-
-## 6 强调
-
-### 加粗
-
-用于强调带有较粗字体的文本片段.
-
-以下文本片段会被 **渲染为粗体**.
-
-```markdown
-**渲染为粗体**
-__渲染为粗体__
-```
-
-输出的 HTML 看起来像这样:
-
-```html
-<strong>渲染为粗体</strong>
-```
-
-### 斜体
-
-用于强调带有斜体的文本片段.
-
-以下文本片段被 _渲染为斜体_.
-
-```markdown
-*渲染为斜体*
-_渲染为斜体_
-```
-
-输出的 HTML 看起来像这样:
-
-```html
-<em>渲染为斜体</em>
-```
-
-### 删除线
-
-按照 [[GFM]^(GitHub flavored Markdown)](https://github.github.com/gfm/) 你可以使用删除线.
-
-```markdown
-~~这段文本带有删除线.~~
-```
-
-呈现的输出效果如下:
-
-~~这段文本带有删除线.~~
-
-输出的 HTML 看起来像这样:
-
-```html
-<del>这段文本带有删除线.</del>
-```
-
-### 组合
-
-加粗, 斜体, 和删除线可以 组合使用.
-
-```markdown
-***加粗和斜体***
-~~**删除线和加粗**~~
-~~*删除线和斜体*~~
-~~***加粗, 斜体和删除线***~~
-```
-
-呈现的输出效果如下:
-
-***加粗和斜体***
-
-~~**删除线和加粗**~~
-
-~~*删除线和斜体*~~
-
-~~***加粗, 斜体和删除线***~~
-
-输出的 HTML 看起来像这样:
-
-```html
-<em><strong>加粗和斜体</strong></em>
-<del><strong>删除线和加粗</strong></del>
-<del><em>删除线和斜体</em></del>
-<del><em><strong>加粗, 斜体和删除线</strong></em></del>
-```
-
-## 7 引用
-
-用于在文档中引用其他来源的内容块.
-
-在要引用的任何文本之前添加 `>`:
-
-```markdown
-> **Fusion Drive** combines a hard drive with a flash storage (solid-state drive) and presents it as a single logical volume with the space of both drives combined.
-```
-
-呈现的输出效果如下:
-
-> **Fusion Drive** combines a hard drive with a flash storage (solid-state drive) and presents it as a single logical volume with the space of both drives combined.
-
-输出的 HTML 看起来像这样:
-
-```html
-<blockquote>
- <p>
- <strong>Fusion Drive</strong> combines a hard drive with a flash storage (solid-state drive) and presents it as a single logical volume with the space of both drives combined.
- </p>
-</blockquote>
-```
-
-引用也可以嵌套:
-
-```markdown
-> Donec massa lacus, ultricies a ullamcorper in, fermentum sed augue.
-Nunc augue augue, aliquam non hendrerit ac, commodo vel nisi.
->> Sed adipiscing elit vitae augue consectetur a gravida nunc vehicula. Donec auctor
-odio non est accumsan facilisis. Aliquam id turpis in dolor tincidunt mollis ac eu diam.
-```
-
-呈现的输出效果如下:
-
-> Donec massa lacus, ultricies a ullamcorper in, fermentum sed augue.
-Nunc augue augue, aliquam non hendrerit ac, commodo vel nisi.
->> Sed adipiscing elit vitae augue consectetur a gravida nunc vehicula. Donec auctor
-odio non est accumsan facilisis. Aliquam id turpis in dolor tincidunt mollis ac eu diam.
-
-## 8 列表
-
-### 无序列表
-
-一系列项的列表, 其中项的顺序没有明显关系.
-
-你可以使用以下任何符号来表示无序列表中的项:
-
-```markdown
-* 一项内容
-- 一项内容
-+ 一项内容
-```
-
-例如:
-
-```markdown
-* Lorem ipsum dolor sit amet
-* Consectetur adipiscing elit
-* Integer molestie lorem at massa
-* Facilisis in pretium nisl aliquet
-* Nulla volutpat aliquam velit
- * Phasellus iaculis neque
- * Purus sodales ultricies
- * Vestibulum laoreet porttitor sem
- * Ac tristique libero volutpat at
-* Faucibus porta lacus fringilla vel
-* Aenean sit amet erat nunc
-* Eget porttitor lorem
-```
-
-呈现的输出效果如下:
-
-* Lorem ipsum dolor sit amet
-* Consectetur adipiscing elit
-* Integer molestie lorem at massa
-* Facilisis in pretium nisl aliquet
-* Nulla volutpat aliquam velit
- * Phasellus iaculis neque
- * Purus sodales ultricies
- * Vestibulum laoreet porttitor sem
- * Ac tristique libero volutpat at
-* Faucibus porta lacus fringilla vel
-* Aenean sit amet erat nunc
-* Eget porttitor lorem
-
-输出的 HTML 看起来像这样:
-
-```html
-<ul>
- <li>Lorem ipsum dolor sit amet</li>
- <li>Consectetur adipiscing elit</li>
- <li>Integer molestie lorem at massa</li>
- <li>Facilisis in pretium nisl aliquet</li>
- <li>Nulla volutpat aliquam velit
- <ul>
- <li>Phasellus iaculis neque</li>
- <li>Purus sodales ultricies</li>
- <li>Vestibulum laoreet porttitor sem</li>
- <li>Ac tristique libero volutpat at</li>
- </ul>
- </li>
- <li>Faucibus porta lacus fringilla vel</li>
- <li>Aenean sit amet erat nunc</li>
- <li>Eget porttitor lorem</li>
-</ul>
-```
-
-### 有序列表
-
-一系列项的列表, 其中项的顺序确实很重要.
-
-```markdown
-1. Lorem ipsum dolor sit amet
-2. Consectetur adipiscing elit
-3. Integer molestie lorem at massa
-4. Facilisis in pretium nisl aliquet
-5. Nulla volutpat aliquam velit
-6. Faucibus porta lacus fringilla vel
-7. Aenean sit amet erat nunc
-8. Eget porttitor lorem
-```
-
-呈现的输出效果如下:
-
-1. Lorem ipsum dolor sit amet
-2. Consectetur adipiscing elit
-3. Integer molestie lorem at massa
-4. Facilisis in pretium nisl aliquet
-5. Nulla volutpat aliquam velit
-6. Faucibus porta lacus fringilla vel
-7. Aenean sit amet erat nunc
-8. Eget porttitor lorem
-
-输出的 HTML 看起来像这样:
-
-```html
-<ol>
- <li>Lorem ipsum dolor sit amet</li>
- <li>Consectetur adipiscing elit</li>
- <li>Integer molestie lorem at massa</li>
- <li>Facilisis in pretium nisl aliquet</li>
- <li>Nulla volutpat aliquam velit</li>
- <li>Faucibus porta lacus fringilla vel</li>
- <li>Aenean sit amet erat nunc</li>
- <li>Eget porttitor lorem</li>
-</ol>
-```
-
-{{< admonition tip >}}
-如果你对每一项使用 `1.`, Markdown 将自动为每一项编号. 例如:
-
-```markdown
-1. Lorem ipsum dolor sit amet
-1. Consectetur adipiscing elit
-1. Integer molestie lorem at massa
-1. Facilisis in pretium nisl aliquet
-1. Nulla volutpat aliquam velit
-1. Faucibus porta lacus fringilla vel
-1. Aenean sit amet erat nunc
-1. Eget porttitor lorem
-```
-
-呈现的输出效果如下:
-
-1. Lorem ipsum dolor sit amet
-1. Consectetur adipiscing elit
-1. Integer molestie lorem at massa
-1. Facilisis in pretium nisl aliquet
-1. Nulla volutpat aliquam velit
-1. Faucibus porta lacus fringilla vel
-1. Aenean sit amet erat nunc
-1. Eget porttitor lorem
-{{< /admonition >}}
-
-### 任务列表
-
-任务列表使你可以创建带有复选框的列表.
-要创建任务列表, 请在任务列表项之前添加破折号 (`-`) 和带有空格的方括号 (`[ ]`). 要选择一个复选框,请在方括号之间添加 x (`[x]`).
-
-```markdown
-- [x] Write the press release
-- [ ] Update the website
-- [ ] Contact the media
-```
-
-呈现的输出效果如下:
-
-- [x] Write the press release
-- [ ] Update the website
-- [ ] Contact the media
-
-## 9 代码
-
-### 行内代码
-
-用 <code>`</code> 包装行内代码段.
-
-```markdown
-在这个例子中, `<section></section>` 会被包裹成 **代码**.
-```
-
-呈现的输出效果如下:
-
-在这个例子中, `<section></section>` 会被包裹成 **代码**.
-
-输出的 HTML 看起来像这样:
-
-```html
-<p>
- 在这个例子中, <code>&lt;section&gt;&lt;/section&gt;</code> 会被包裹成 <strong>代码</strong>.
-</p>
-```
-
-### 缩进代码
-
-将几行代码缩进至少四个空格,例如:
-
-```markdown
- // Some comments
- line 1 of code
- line 2 of code
- line 3 of code
-```
-
-呈现的输出效果如下:
-
- // Some comments
- line 1 of code
- line 2 of code
- line 3 of code
-
-输出的 HTML 看起来像这样:
-
-```html
-<pre>
- <code>
- // Some comments
- line 1 of code
- line 2 of code
- line 3 of code
- </code>
-</pre>
-```
-
-### 围栏代码块
-
-使用 "围栏" <code>```</code> 来生成一段带有语言属性的代码块.
-
-{{< highlight markdown >}}
-```markdown
-Sample text here...
-```
-{{< / highlight >}}
-
-输出的 HTML 看起来像这样:
-
-```html
-<pre language-html>
- <code>Sample text here...</code>
-</pre>
-```
-
-### 语法高亮
-
-[GFM]^(GitHub Flavored Markdown) 也支持语法高亮.
-
-要激活它,只需在第一个代码 "围栏" 之后直接添加你要使用的语言的文件扩展名,
-<code>```js</code>, 语法高亮显示将自动应用于渲染的 HTML 中.
-
-例如, 在以下 JavaScript 代码中应用语法高亮:
-
-{{< highlight markdown >}}
-```js
-grunt.initConfig({
- assemble: {
- options: {
- assets: 'docs/assets',
- data: 'src/data/*.{json,yml}',
- helpers: 'src/custom-helpers.js',
- partials: ['src/partials/**/*.{hbs,md}']
- },
- pages: {
- options: {
- layout: 'default.hbs'
- },
- files: {
- './': ['src/templates/pages/index.hbs']
- }
- }
- }
-};
-```
-{{< / highlight >}}
-
-呈现的输出效果如下:
-
-```js
-grunt.initConfig({
- assemble: {
- options: {
- assets: 'docs/assets',
- data: 'src/data/*.{json,yml}',
- helpers: 'src/custom-helpers.js',
- partials: ['src/partials/**/*.{hbs,md}']
- },
- pages: {
- options: {
- layout: 'default.hbs'
- },
- files: {
- './': ['src/templates/pages/index.hbs']
- }
- }
- }
-};
-```
-
-{{< admonition >}}
-**Hugo** 文档中的 [语法高亮页面](https://gohugo.io/content-management/syntax-highlighting/) 介绍了有关语法高亮的更多信息,
-包括语法高亮的 shortcode.
-{{< /admonition >}}
-
-## 10 表格
-
-通过在每个单元格之间添加竖线作为分隔线, 并在标题下添加一行破折号 (也由竖线分隔) 来创建表格. 注意, 竖线不需要垂直对齐.
-
-```markdown
-| Option | Description |
-| ------ | ----------- |
-| data | path to data files to supply the data that will be passed into templates. |
-| engine | engine to be used for processing templates. Handlebars is the default. |
-| ext | extension to be used for dest files. |
-```
-
-呈现的输出效果如下:
-
-| Option | Description |
-| ------ | ----------- |
-| data | path to data files to supply the data that will be passed into templates. |
-| engine | engine to be used for processing templates. Handlebars is the default. |
-| ext | extension to be used for dest files. |
-
-输出的 HTML 看起来像这样:
-
-```html
-<table>
- <thead>
- <tr>
- <th>Option</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>data</td>
- <td>path to data files to supply the data that will be passed into templates.</td>
- </tr>
- <tr>
- <td>engine</td>
- <td>engine to be used for processing templates. Handlebars is the default.</td>
- </tr>
- <tr>
- <td>ext</td>
- <td>extension to be used for dest files.</td>
- </tr>
- </tbody>
-</table>
-```
-
-{{< admonition note "文本右对齐或居中对齐" >}}
-在任何标题下方的破折号右侧添加冒号将使该列的文本右对齐.
-
-在任何标题下方的破折号两边添加冒号将使该列的对齐文本居中.
-
-```markdown
-| Option | Description |
-|:------:| -----------:|
-| data | path to data files to supply the data that will be passed into templates. |
-| engine | engine to be used for processing templates. Handlebars is the default. |
-| ext | extension to be used for dest files. |
-```
-
-呈现的输出效果如下:
-
-| Option | Description |
-|:------:| -----------:|
-| data | path to data files to supply the data that will be passed into templates. |
-| engine | engine to be used for processing templates. Handlebars is the default. |
-| ext | extension to be used for dest files. |
-{{< /admonition >}}
-
-## 11 链接 {#links}
-
-### 基本链接
-
-```markdown
-<https://assemble.io>
-<contact@revolunet.com>
-[Assemble](https://assemble.io)
-```
-
-呈现的输出效果如下 (将鼠标悬停在链接上,没有提示):
-
-<https://assemble.io>
-
-<contact@revolunet.com>
-
-[Assemble](https://assemble.io)
-
-输出的 HTML 看起来像这样:
-
-```html
-<a href="https://assemble.io">https://assemble.io</a>
-<a href="mailto:contact@revolunet.com">contact@revolunet.com</a>
-<a href="https://assemble.io">Assemble</a>
-```
-
-### 添加一个标题
-
-```markdown
-[Upstage](https://github.com/upstage/ "Visit Upstage!")
-```
-
-呈现的输出效果如下 (将鼠标悬停在链接上,会有一行提示):
-
-[Upstage](https://github.com/upstage/ "Visit Upstage!")
-
-输出的 HTML 看起来像这样:
-
-```html
-<a href="https://github.com/upstage/" title="Visit Upstage!">Upstage</a>
-```
-
-### 定位标记
-
-定位标记使你可以跳至同一页面上的指定锚点. 例如, 每个章节:
-
-```markdown
-## Table of Contents
- * [Chapter 1](#chapter-1)
- * [Chapter 2](#chapter-2)
- * [Chapter 3](#chapter-3)
-```
-
-将跳转到这些部分:
-
-```markdown
-## Chapter 1 <a id="chapter-1"></a>
-Content for chapter one.
-
-## Chapter 2 <a id="chapter-2"></a>
-Content for chapter one.
-
-## Chapter 3 <a id="chapter-3"></a>
-Content for chapter one.
-```
-
-{{< admonition >}}
-定位标记的位置几乎是任意的. 因为它们并不引人注目, 所以它们通常被放在同一行了.
-{{< /admonition >}}
-
-## 12 脚注
-
-脚注使你可以添加注释和参考, 而不会使文档正文混乱.
-当你创建脚注时, 会在添加脚注引用的位置出现带有链接的上标编号.
-读者可以单击链接以跳至页面底部的脚注内容.
-
-要创建脚注引用, 请在方括号中添加插入符号和标识符 (`[^1]`).
-标识符可以是数字或单词, 但不能包含空格或制表符.
-标识符仅将脚注引用与脚注本身相关联 - 在脚注输出中, 脚注按顺序编号.
-
-在中括号内使用插入符号和数字以及用冒号和文本来添加脚注内容 (`[^1]:这是一段脚注`).
-你不一定要在文档末尾添加脚注. 可以将它们放在除列表, 引用和表格等元素之外的任何位置.
-
-```markdown
-这是一个数字脚注[^1].
-这是一个带标签的脚注[^label]
-
-[^1]: 这是一个数字脚注
-[^label]: 这是一个带标签的脚注
-```
-
-这是一个数字脚注[^1].
-
-这是一个带标签的脚注[^label]
-
-[^1]: 这是一个数字脚注
-[^label]: 这是一个带标签的脚注
-
-## 13 图片
-
-图片的语法与链接相似, 但包含一个在前面的感叹号.
-
-```markdown
-![Minion](https://octodex.github.com/images/minion.png)
-```
-
-![Minion](https://octodex.github.com/images/minion.png)
-
-或者:
-
-```markdown
-![Alt text](https://octodex.github.com/images/stormtroopocat.jpg "The Stormtroopocat")
-```
-
-![Alt text](https://octodex.github.com/images/stormtroopocat.jpg "The Stormtroopocat")
-
-像链接一样, 图片也具有脚注样式的语法:
-
-```markdown
-![Alt text][id]
-```
-
-![Alt text][id]
-
-稍后在文档中提供参考内容, 用来定义 URL 的位置:
-
-```markdown
-[id]: https://octodex.github.com/images/dojocat.jpg "The Dojocat"
-```
-
-[id]: https://octodex.github.com/images/dojocat.jpg "The Dojocat"
-
-{{< admonition tip >}}
-**LoveIt** 主题提供了一个包含更多功能的 [图片的 shortcode](../theme-documentation-extended-shortcodes#image).
-{{< /admonition >}}