Markdown 指南
PlainApp 笔记中的 Markdown 语法速查——标题、列表、表格、代码块等。
标题
在行首添加 #,# 的数量表示级别,从 1(最大)到 6(最小)。标题前后请保留空行。
# Heading level 1
## Heading level 2
### Heading level 3
#### Heading level 4
##### Heading level 5
###### Heading level 6Heading level 1
Heading level 2
Heading level 3
Heading level 4
Heading level 5
Heading level 6
提示: PlainApp 编辑器工具栏的「标题」按钮可以自动插入这些格式。
段落与换行
段落之间用空行分隔。如需在段落内换行,请在行尾添加反斜杠。
First paragraph.
Second paragraph.First paragraph.
Second paragraph.
Line one\
Line twoLine one
Line two
粗体与斜体
用双星号包裹文字表示粗体,单星号表示斜体,两个波浪号渲染删除线。
**bold text**bold text
*italic text*italic text
~~struck through~~struck through
**bold and *nested italic***bold and nested italic
列表
行首用 - 表示无序列表,1. 表示有序列表。缩进空格可嵌套列表项。用 - [ ] 表示待办项,完成后改为 - [x]。
- One
- Two
- Three- One
- Two
- Three
1. First
2. Second
3. Third- First
- Second
- Third
- [ ] Buy milk
- [x] Write the note- Buy milk
- Write the note
- Fruit
- Apple
- Banana
- Vegetable- Fruit
- Apple
- Banana
- Vegetable
引用与标注
行首用 > 表示引用。在 PlainApp 中,> [!note] 会把该块渲染为标注框。
> This is a blockquote.This is a blockquote.
> [!note] Heads up
> This renders as a callout box in PlainApp.[!note] Heads up This renders as a callout box in PlainApp.
代码
行内代码用单个反引号包裹。代码块用三个反引号,并在其后加上语言名以获得语法高亮。
Use `inline code` for short snippets.Use inline code for short snippets.
```js
console.log("hello");
```console.log("hello");
提示: 编辑器工具栏的「代码」按钮可以插入行内代码和代码块。
链接
写作 [链接文字](URL)。把裸 URL 用尖括号包裹即可自动变为链接。在链接内嵌套图片可让图片可点击。
[PlainApp website](https://plainapp.app)<https://plainapp.app>图片
与链接写法相同,只需在前面加感叹号:。
表格
用竖线
| Left | Center | Right |
|:-----|:------:|------:|
| a | b | c |
| d | e | f || Left | Center | Right |
|---|---|---|
| a | b | c |
| d | e | f |
提示: 编辑器工具栏的「表格」按钮可以插入空表格骨架。
分隔线
单独一行上的三个或更多短横线、星号或下划线会渲染为分隔线。上方请留空行,否则上一行会变成标题。
First section.
---
Second section.First section.
Second section.
转义字符
在 Markdown 会格式化的字符(如 * _ # 或反引号)前加反斜杠,即可原样显示。
\*not italic\**not italic*
\# not a heading# not a heading
内联 HTML
PlainApp 笔记还支持少量 HTML 标签:下划线、高亮、彩色文字以及可折叠的 details。
<u>underlined text</u>underlined text
<mark>highlighted text</mark>highlighted text
<font color="#8b5cf6">colored text</font>colored text
<details>
<summary>Click to expand</summary>
Hidden content here.
</details>Click to expand
Hidden content here.数学公式与更多
上标 x^2^、下标 H~2~O、行内公式 $E = mc^2$、用 $$ 包裹的公式块、脚注 [^1],以及渲染后隐藏的 %% 注释 %%。
x^2^ + y^3^x^2^ + y^3^
H~2~OH2O
Inline math $E = mc^2$ and a block:
$$
a^2 + b^2 = c^2
$$Inline math $E = mc^2$ and a block: $$ a^2 + b^2 = c^2 $$
See the footnote[^1] for details.
[^1]: This is the footnote text.See the footnote[^1] for details.
[^1]: This is the footnote text.
%% This comment stays hidden in PlainApp %%%% This comment stays hidden in PlainApp %%
提示: PlainApp 笔记中数学公式、脚注和标注会渲染为富文本块;此处「效果」列展示的是普通网页输出。