这是一个演示文章

这是一个示例文章

这是一個範例文章

This is a H2 Heading Long Heading Long Heading Long Heading Long Heading Long Heading Long Heading Long Heading Long Heading Long Heading Long Heading Long Heading Long Heading Long Heading

This is a H2 Heading

This is a H3 Heading

This is a H4 Heading

This is a H5 Heading
This is a H6 Heading

Horizontal Rules




Emphasis

This is bold text

This is italic text

Strikethrough

Quotes

“Double quotes” and ‘single quotes’

Blockquotes

Blockquotes can also be nested…
…by using additional greater-than signs right next to each other…

References

An example containing a clickable reference1 with a link to the source.

Second example containing a reference2 with a link to the source.

If you check out this example in src/content/post/markdown-elements/index.md, you’ll notice that the references and the heading “Footnotes” are added to the bottom of the page via the remark-rehype🔗 plugin.

Lists

Unordered

  • Create a list by starting a line with +, -, or *
  • Sub-lists are made by indenting 2 spaces:
    • Marker character change forces new list start:
      • Ac tristique libero volutpat at
      • Facilisis in pretium nisl aliquet
      • Nulla volutpat aliquam velit
  • Very easy!

Ordered

  1. Lorem ipsum dolor sit amet

  2. Consectetur adipiscing elit

  3. Integer molestie lorem at massa

  4. 您可以使用顺序数字…

  5. …或将所有数字保持为 1.

从偏移量开始编号:

  1. foo
  2. bar

代码

行内 code

缩进代码

// 一些注释 代码的第 1 行 代码的第 2 行 代码的第 3 行

块代码 “围栏”

这里是示例文本...

语法高亮

var foo = function (bar) {
return bar++;
};
console.log(foo(5));

表达式代码示例

添加标题

file.js
console.log('标题示例');

一个 bash 终端

Terminal window
echo "一个基本的终端示例"

高亮代码行

line-markers.js
function demo() {
console.log('这一行被标记为删除');
// 这一行和下一行被标记为插入
console.log('这是第二个插入的行');
return '这一行使用中性默认标记类型';
}

Expressive Code🔗 可以做更多的事情,并包含很多 自定义🔗

表格

选项描述
data数据文件的路径,用于提供将传递到模板的数据。
engine用于处理模板的引擎。Handlebars 是默认的。
ext用于目标文件的扩展名。

右对齐列

选项描述
data数据文件的路径,用于提供将传递到模板的数据。
engine用于处理模板的引擎。Handlebars 是默认的。
ext用于目标文件的扩展名。

图片

同一文件夹中的图片: src/content/post/markdown-elements/logo.png

位于别名资产文件夹中的图像: src/assets/about-astro.png

链接

来自 markdown-it 的内容🔗

Footnotes

  1. Reference first footnote with a return to content link.

  2. Second reference with a link.