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
- Marker character change forces new list start:
- Very easy!
Ordered
-
Lorem ipsum dolor sit amet
-
Consectetur adipiscing elit
-
Integer molestie lorem at massa
-
您可以使用顺序数字…
-
…或将所有数字保持为
1.
从偏移量开始编号:
- foo
- bar
代码
行内 code
缩进代码
// 一些注释 代码的第 1 行 代码的第 2 行 代码的第 3 行
块代码 “围栏”
这里是示例文本...语法高亮
var foo = function (bar) { return bar++;};
console.log(foo(5));表达式代码示例
添加标题
console.log('标题示例');一个 bash 终端
echo "一个基本的终端示例"高亮代码行
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