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)。把裸網址以角括號包夾即可自動成為連結。在連結內嵌圖片可讓圖片可點擊。
[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 筆記中數學公式、腳註與標註會渲染為豐富區塊;此處「效果」欄顯示的是一般網頁輸出。