Markdown 语法示例

一篇覆盖常用 Markdown 语法的示例文档,可当作写作时的速查(含加粗、斜体、代码块、表格、公式、流程图等)。

基础格式

bold, underline, italic, line-through, superscript26, subscript1, inline code, link

quote: I Have a Dream

  1. So even though we face the difficulties of today and tomorrow, I still have a dream.
  2. It is a dream deeply rooted in the American dream.
  3. I have a dream that one day this nation will rise up.
  • Friday
  • Saturday
  • Sunday

代码

 1<template>
 2  <MdEditor v-model="text" />
 3</template>
 4
 5<script setup>
 6import { ref } from 'vue';
 7import { MdEditor } from 'md-editor-v3';
 8import 'md-editor-v3/lib/style.css';
 9
10const text = ref('Hello Editor!');
11</script>

表格

nickname from
zhijian ChongQing, China

公式

Inline: $x+y^{2x}$

$$
\sqrt[3]{x}
$$

流程图

flowchart TD
  Start --> Stop

提示块

!!! note Supported Types

note、abstract、info、tip、success、question、warning、failure、danger、bug、example、quote、hint、caution、error、attention

!!!