[ m ] arkdown + e [ ditor ] = mditor
mditor 是一個簡潔、易于內建、友善擴充、期望舒服的編寫 markdown 的編輯器,僅此而已...
支援浏覽器: chrome/safari/firefox/ie9+
<a href="http://houfeng.net/mditor/demo/index.html">線上 demo</a>
引入 mditor 樣式檔案
引用 mditor 腳本檔案
添加 textarea 元素
建立 mditor 執行個體
通過 npm 安裝
在服務端解析
在頁中展示解析後内容
-end-