📝 Markdown Live Preview
在左側輸入 Markdown 內容,這裡會即時預覽...
📚 深度解析:Markdown 轉換 / 預覽
💡 常見使用場景
- 寫 README、部落格與文件:即時把 Markdown 渲染為帶標題、列表、表格、程式碼的排版,確認效果後再發布。
- Markdown 轉 HTML:把寫好的 .md 匯出為網頁片段,嵌入 CMS 或郵件。
- 格式校驗:檢查巢狀列表、程式碼塊圍欄是否閉合,避免釋出後錯版。
渲染一份帶表的說明
輸入「| 專案 | 價格 |
|---|---|
| A | 9 |」,即時得到兩列表格;配合
```js 程式碼圍欄可並排展示語法高亮,確認 GFM 表格與程式碼塊都正確。
❓ 常見問題(FAQ)
- 和標準 Markdown 有差異嗎?
- 本工具按 GitHub 風格 GFM 解析(支援表格、刪除線、任務列表);若你用嚴格 CommonMark,部分擴充套件語法(如表格)在標準裡不定義,遷移時注意。
- HTML 混寫安全嗎?
- Markdown 允許內聯 HTML,但釋出到公網前需確認不過濾危險標籤;本工具僅本地渲染,不上傳內容。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Specification | rendering follows the CommonMark specification for ambiguous syntax | CommonMark Specification |
| Extensions | tables task lists and strikethrough are extensions defined by GitHub Flavored Markdown | GitHub Flavored Markdown Spec |
| Sanitisation | scripts and event attributes must be filtered before rendering to prevent injection | OWASP Cross Site Scripting Prevention |
⚠️ 使用說明與注意事項
- 本工具純前端執行,資料不會上傳到伺服器
- 建議在主流瀏覽器(Chrome/Safari/Firefox/Edge)中使用
- 計算結果僅供參考,請以實際應用場景為準