An image showcasing My Page.

markdown全语法示例

all markdown syntaxes are included here

明白了!下面是一个包含所有 Markdown 语法的代码块,你可以直接复制到编辑器中查看:

标题

三级标题

四级标题

五级标题
六级标题

强调

斜体斜体

粗体粗体

粗斜体粗斜体

列表

无序列表

  • 项目 1
  • 项目 2
    • 子项目 1
    • 子项目 2

有序列表

  1. 第一项
  2. 第二项
    1. 子项 1
    2. 子项 2

链接

GitHub

图片

Alt 文本

代码

行内代码

这是 行内代码 的示例。

代码块

sample.ts
const msg="Hello, World!"
console.log(msg)
// Using 'typeof' to infer types
const person = { name: "Alice", age: 30 };
type PersonType = typeof person;  // { name: string; age: number }
sample.java
class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}
sample.sh
echo "Hello, World!"
sample.graphql
query Hello{
    hello
    world
}
<template>
  <div>Hello, World!</div>
  <div>{{msg}}</div>
</template>
<script lang="ts" setup>
  const msg = ref("Hello, World!")
</script>

引用

这是一个引用块。

这是引用块的第二行。

分隔线


表格

列1列2
内容1内容2
内容3内容4
abcd

任务列表

  • 已完成任务
  • 未完成任务
  • to do
  • done

公式

$$ E = mc^2 $$

将以上内容复制到 Markdown 编辑器中,你将能够查看和测试 Markdown 的各种语法。

© api2o.com:: a website of blog, tools, APIs. 一个包含: 博客、在线工具、API 的网站. All rights reserved.