Markdown 是什么?10 分钟上手指南
如果你只想用最简单的方式把想法写下来,又能随时变成好看的网页、PDF 或文档,Markdown 几乎是最省心的选择。
Markdown 是什麼?10 分鐘上手指南
如果你只想用最簡單的方式把想法寫下來,又能隨時變成好看的網頁、PDF 或文件,Markdown 幾乎是最省心的選擇。
What Is Markdown? A 10-Minute Getting-Started Guide
If you want the simplest way to get your ideas down—and still turn them into a polished web page, PDF, or document anytime—Markdown is about as worry-free as it gets.
一、Markdown 到底是什么
Markdown 是一种“用纯文本写格式”的轻量标记语言。你不需要鼠标点按钮,只要在文字旁边加几个简单符号,就能表示标题、加粗、列表、链接等。它写起来像普通笔记,读起来也几乎和原样一样清楚。
比如下面这段:
# 我的标题
这是一段**加粗**文字,下面是一份清单:
- 第一件事
- 第二件事
放到任何支持 Markdown 的工具里,都会变成带标题、加粗和项目符号的排版结果。它本质就是一个 .md 文本文件,能被记事本打开,也能被程序轻松转换。
二、为什么值得花 10 分钟学
- 专注内容,不被格式打断。你不用边写边调字体、对齐、颜色,思路不会被工具栏拽走。
- 文件极小、永不绑定软件。它是纯文本,十年后照样能打开,不会像某些专有格式那样“打不开旧文件”。
- 一份源文件,多种输出。同一份
.md可以变成网页、PDF、Word、幻灯片,甚至公众号排版。 - 对版本管理友好。纯文本的差异一目了然,和 Git 等工具配合做写作记录非常顺手。
一句话总结:Markdown 把“写作”和“排版”分开——你先专心写,再决定它长什么样。
三、常用语法速查(照着敲)
下面这张表覆盖了 90% 的日常写法,建议直接复制到编辑器里试:
| 效果 | 怎么写 |
|---|---|
| 标题(1–6 级) | # 标题 到 ###### 标题 |
| 加粗 / 斜体 / 删除线 | **粗** · *斜* · ~~删~~ |
| 无序 / 有序列表 | - 项 · 1. 项 |
| 任务清单 | - [ ] 待办 · - [x] 已完成 |
| 引用 | > 引用内容 |
| 行内代码 / 代码块 | `代码`;三反引号起一块 |
| 链接 / 图片 | [文字](https://…) ·  |
| 表格 | | 列1 | 列2 | 加一行 |---|---| |
| 分割线 | 单独一行写 --- |
更完整的清单可以看我们的 使用指南,里面按功能排好了每种写法。
四、一分钟真正上手
最快的方式不是装软件,而是直接打开一个在线编辑器:
- 打开 365Lab 在线 Markdown 编辑器(免注册,左边写、右边实时预览)。
- 把上面的语法表随便挑两行,粘到左边。
- 看右边立刻变成排版结果——你已经会 Markdown 了。
- 写完后用顶栏的“导入 / 导出”把内容存成
.md或 PDF,带走即可。
小技巧:在线编辑器把内容只存在你当前浏览器里,不上传服务器。重要内容记得随手导出备份,换设备时用“导入”读回即可。
五、新手最常踩的 3 个坑
1. 标题后面忘了空格
#标题 不会被识别成标题,必须是 # 标题(# 后面一个空格)。
2. 列表想换行却断了层级
想在列表项里写多段,第二段要缩进至少两个空格或一整段空行再缩进,否则会被当成新段落。
3. 把 Markdown 当成“必须会编程”
完全不用。它只是几个符号约定,和写微信、写备忘录没本质区别,会打字就会用。
六、常见问题
Q:Markdown 文件用什么打开?
A:任何文本编辑器都能打开(它就是文本)。想看排版效果,用 在线编辑器、Typora、VS Code 等带预览的工具即可。
Q:手机上能写 Markdown 吗?
A:可以。365Lab 编辑器在手机浏览器里会自动切换成“编辑 / 预览”标签页,照样能写能导出。
Q:学会了 Markdown,能直接发公众号 / 博客吗?
A:多数平台支持粘贴富文本或 Markdown。你也可以先用编辑器导出 HTML,再粘到目标平台。
下一篇可以看 Markdown 表格怎么写,或 怎么把 Markdown 转成 PDF。
一、Markdown 到底是什麼
Markdown 是一種「用純文字寫格式」的輕量標記語言。你不需要滑鼠點按鈕,只要在文字旁邊加幾個簡單符號,就能表示標題、加粗、清單、連結等。它寫起來像普通筆記,讀起來也幾乎和原樣一樣清楚。
比如下面這段:
# 我的標題
這是一段**加粗**文字,下面是一份清單:
- 第一件事
- 第二件事
放到任何支援 Markdown 的工具裡,都會變成帶標題、加粗和項目符號的排版結果。它本質就是一個 .md 文字檔,能被記事本打開,也能被程式輕鬆轉換。
二、為什麼值得花 10 分鐘學
- 專注內容,不被格式打斷。你不用邊寫邊調字體、對齊、顏色,思路不會被工具列拽走。
- 檔案極小、永遠不綁定軟體。它是純文字,十年後照樣能打開,不會像某些專有格式那樣「打不開舊檔案」。
- 一份源檔,多種輸出。同一份
.md可以變成網頁、PDF、Word、投影片,甚至公眾號排版。 - 對版本管理友善。純文字的差異一目了然,和 Git 等工具配合做寫作紀錄非常順手。
一句話總結:Markdown 把「寫作」和「排版」分開——你先專心寫,再決定它長什麼樣。
三、常用語法速查(照著敲)
下面這張表涵蓋了 90% 的日常寫法,建議直接複製到編輯器裡試:
| 效果 | 怎麼寫 |
|---|---|
| 標題(1–6 級) | # 標題 到 ###### 標題 |
| 加粗 / 斜體 / 刪除線 | **粗** · *斜* · ~~刪~~ |
| 無序 / 有序清單 | - 項 · 1. 項 |
| 任務清單 | - [ ] 待辦 · - [x] 已完成 |
| 引用 | > 引用內容 |
| 行內程式碼 / 程式碼塊 | `程式碼`;三個反引號起一塊 |
| 連結 / 圖片 | [文字](https://…) ·  |
| 表格 | | 欄1 | 欄2 | 加一行 |---|---| |
| 分隔線 | 單獨一行寫 --- |
更完整的清單可以看我們的 使用指南,裡面按功能排好了每種寫法。
四、一分鐘真正上手
最快的方式不是裝軟體,而是直接打開一個線上編輯器:
- 打開 365Lab 線上 Markdown 編輯器(免註冊,左邊寫、右邊即時預覽)。
- 把上面的語法表隨便挑兩行,貼到左邊。
- 看右邊立刻變成排版結果——你已經會 Markdown 了。
- 寫完後用頂欄的「匯入 / 匯出」把內容存成
.md或 PDF,帶走即可。
小技巧:線上編輯器把內容只存在你目前瀏覽器裡,不上傳伺服器。重要內容記得隨手匯出備份,換裝置時用「匯入」讀回即可。
五、新手最常踩的 3 個坑
1. 標題後面忘了空格
#標題 不會被識別成標題,必須是 # 標題(# 後面一個空格)。
2. 清單想換行卻斷了層級
想在清單項裡寫多段,第二段要縮排至少兩個空格或一整段空行再縮排,否則會被當成新段落。
3. 把 Markdown 當成「必須會程式設計」
完全不用。它只是幾個符號約定,和寫微信、寫備忘錄沒本質區別,會打字就會用。
六、常見問題
Q:Markdown 檔案用什麼打開?
A:任何文字編輯器都能打開(它就是文字)。想看排版效果,用 線上編輯器、Typora、VS Code 等帶預覽的工具即可。
Q:手機上能寫 Markdown 嗎?
A:可以。365Lab 編輯器在手機瀏覽器裡會自動切換成「編輯 / 預覽」分頁,照樣能寫能匯出。
Q:學會了 Markdown,能直接發公眾號 / 部落格嗎?
A:多數平台支援貼上富文字或 Markdown。你也可以先用編輯器匯出 HTML,再貼到目標平台。
下一篇可以看 Markdown 表格怎麼寫,或 怎麼把 Markdown 轉成 PDF。
1. What Markdown really is
Markdown is a lightweight markup language that lets you "write formatting with plain text." You don't click buttons with a mouse—you just add a few simple symbols next to your words to mark headings, bold text, lists, links, and so on. It reads like an ordinary note and still stays perfectly clear in its raw form.
For example, this:
# My heading
This is a **bold** sentence, followed by a list:
- First thing
- Second thing
Drop it into any Markdown-aware tool and it becomes a formatted result with a heading, bold text, and bullets. At its core it's just a .md text file—openable in Notepad and trivially convertible by programs.
2. Why 10 minutes is worth it
- Focus on content, not formatting. You never pause to tweak fonts, alignment, or colors, so your train of thought isn't yanked away by a toolbar.
- Tiny files that never lock you in. It's plain text, still openable a decade later—no "can't open the old file" problem like some proprietary formats.
- One source, many outputs. The same
.mdcan become a web page, PDF, Word doc, slides, even WeChat-formatted copy. - Version-control friendly. Plain-text diffs are crystal clear, which pairs beautifully with Git for writing history.
In one line: Markdown separates "writing" from "formatting"—you write first, then decide how it looks.
3. Common syntax cheat sheet (type along)
This table covers 90% of daily usage. Copy it straight into the editor and try:
| Effect | How to write |
|---|---|
| Heading (1–6 levels) | # Heading through ###### Heading |
| Bold / Italic / Strikethrough | **bold** · *italic* · ~~strike~~ |
| Unordered / Ordered list | - item · 1. item |
| Task list | - [ ] todo · - [x] done |
| Quote | > quoted text |
| Inline code / Code block | `code`; a fenced block uses three backticks |
| Link / Image | [text](https://…) ·  |
| Table | | Col1 | Col2 | plus a row |---|---| |
| Horizontal rule | Write --- on its own line |
For the full list, see our User Guide, organized by feature.
4. Get started in one minute
The fastest way isn't to install software—just open an online editor:
- Open the 365Lab online Markdown editor (no sign-up; write on the left, live preview on the right).
- Pick any two rows from the table above and paste them on the left.
- Watch the right side format instantly—you already know Markdown.
- When done, use the top bar's "Import / Export" to save as
.mdor PDF and take it with you.
Tip: The online editor stores your content only in your current browser—nothing is uploaded. Export a backup of anything important, and use "Import" to bring it back on another device.
5. The 3 beginner pitfalls
1. Forgetting the space after a heading hash
#Heading won't be recognized as a heading; it must be # Heading (one space after the #).
2. Breaking list nesting when you wrap lines
To write multiple paragraphs inside a list item, the second paragraph must be indented by at least two spaces (or a blank line then indented), or it's treated as a new paragraph.
3. Treating Markdown as "something only programmers use"
Not at all. It's just a few symbol conventions—no different from writing a WeChat message or a memo. If you can type, you can use it.
6. FAQ
Q: What opens a Markdown file?
A: Any text editor opens it—it's just text. To see the formatted result, use a previewer like the online editor, Typora, or VS Code.
Q: Can I write Markdown on my phone?
A: Yes. 365Lab's editor automatically switches to an Edit/Preview tab layout in mobile browsers, so you can write and export just the same.
Q: Once I learn Markdown, can I publish to WeChat / blogs directly?
A: Most platforms accept pasted rich text or Markdown. You can also export HTML from the editor first, then paste it into the target platform.
Next, read How to write Markdown tables, or How to turn Markdown into PDF.