or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
YAML metadata 說明
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →首先,你必須要在筆記的 第一行 加入以下語法:
將這個區塊的 "YAML metas" 替換成以下任意的 YAML 選項
您也可以參考本份筆記的原始碼
title
此選項會設定筆記的標題,會優先於內容的標題
範例
description
此選項會設定筆記的描述
範例
image
此選項會設定筆記的預設圖片 (用於連結預覽)
範例
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →自訂圖片必須符合 Twitter 的長寬比(1200:675),Twitter 才會顯示。
type
此選項可設定筆記的類型。如果想要在編輯模式預覽投影片,請記得設定。
範例
robots
此選項會將以下 meta 加至筆記的 head meta
因此您可以透過
"noindex, nofollow
防止任何搜尋引擎索引您的筆記範例
lang
此選項會設定筆記的語言,這會影響到它的排版方式
您可以在 ISO 639-1 標準 找到您的語言編碼:
https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
範例
dir
此選項提供以描述筆記的文字方向
您只能設定
rtl
或是ltr
(右至左、左至右)詳細請至:
http://www.w3.org/International/questions/qa-html-dir
Example
breaks
此選項設定筆記的換行是否會被轉換或是忽略
最一開始的 markdown 語法中,要在每一行的最後面加上兩個空白才會換行,但是 HackMD 選擇當您每次輸入換行的時候都會換行
您只能設定
true
或是false
範例
GA
此選項可以透過 ID 啟用 Google Analytics
範例
disqus
此選項可以透過 shortname 啟用 Disqus
範例
slideOptions
此選項可用於自訂簡報模式
詳細請至:
https://revealjs.com/config/
您也可以設定簡報模式的主題,名稱於下列的 css 檔案:
https://revealjs.com/themes/
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →範例
lintConfig
此選項為 markdownlint 的設定值,詳細的設定詳見 .markdownlint.yaml。
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →範例