操作手册
小于 1 分钟
Markdown Basic Syntax
I just love bold text. Italicized text is the cat's meow. At the command prompt, type nano.
My favorite markdown editor is ByteMD.
- First item
- Second item
- Third item
Dorothy followed her through many of the beautiful rooms in her castle.
import { Editor, Viewer } from 'bytemd'
import gfm from '@bytemd/plugin-gfm'
const plugins = [
gfm(),
// Add more plugins here
]
const editor = new Editor({
target: document.body, // DOM to render
props: {
value: '',
plugins,
},
})
editor.on('change', (e) => {
editor.$set({ value: e.detail.value })
})GFM Extended Syntax
Automatic URL Linking: https://github.com/bytedance/bytemd
The world is flat. We now know that the world is round.
| Syntax | Description |
|---|---|
| Header | Title |
| Paragraph | Text |
Footnotes
Here's a simple footnote,[1] and here's a longer one.[2]
Gemoji
Thumbs up: 👍, thumbs down: 👎.
Families: 👨👨👦👦
Long flags: 🏴, 🏴, 🏴.
Math Equation
Inline math equation: $a+b$
$$
\displaystyle \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
$$
Mermaid Diagrams
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;