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
md.nchuit.cc/html/
MarkDown簡介與
基礎語法
目錄
背景
Markdown是一種輕量級標記式語言,最重要的設計是可讀性,也就是說這個語言應該要能直接在字面上的被閱讀,而不需要用被一些格式化指令來標記(像是RTF與HTML)。它允許人們使用易讀易寫的純文字格式編寫文件,然後轉換成有效的XHTML(或者HTML)文件。
由於Markdown的輕量化、易讀易寫特性,並且對於圖片,圖表、數學式都有支援,目前許多網站都廣泛使用Markdown來撰寫說明文件或是用於論壇上發表訊息。如GitHub、Reddit、Diaspora、Stack Exchange、OpenStreetMap 、SourceForge、簡書等,甚至還能被用來撰寫電子書。
環境
GitHub: github.com
readme.md
*.md
等下會講HackMD: hackmd.io 註冊
HackMD 註冊流程
MarkDown主要用途
簡化HTML: 標題
MarkDown
粗體 斜體 底線 刪除線 標記文字
練習:
我沒辦法全都要?無序清單 有序清單 待辦事項(?)
分隔線
<hr>
CSS
https://hackmd.io/yaml-metadata
超連結
超連結
插入圖片
練習: 圖片超連結
表格
程式碼
行內
程式碼
現在我有冰淇淋
程式碼區塊
嵌入
Youtube(HackMD 獨家)
- 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 →引用區塊
HackMD 獨家
警告區塊(HackMD 獨家)
耶
- 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 →注意
- 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 →點選顯示更多內容
找到我了!
- 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 →And more…
HackMD 簡報?
將HTML/MarkDown放上網
HackMD 檔案下載
MD-HackMD
書本/簡報 都需要透過「分享的連結」或按下「預覽」才有效果
HTML/MD-GitHub
https://github.com/twjmy/twjmy.github.io
註冊 GitHub(電腦) github.com
上傳
[自己的ID].github.io
⚠️⚠️注意檔名⚠️
*.html
檔存成index.html
*.md
檔存成readmd.md
我們點「Actions」看看網頁的建立過程,看看建得怎麼樣
[自己的ID].github.io
的網址