https://github.com/i5ting/i5ting_ztree_toc 是去哪兒網前段架構師狼叔編寫的一個jQuery插件,用於將markdown 轉化爲帶樣式的html字符串,i5ting_toc是node環境下的實現工具,用於直接將markdown文件轉化爲網頁,在瀏覽器打開 。html
使用方式很是簡單,首先在全局安裝 。node
npm install i5ting_toc -g
首先編輯markdown 文件
git
以後cd到markdown目錄下,運行github
i5ting_toc -f index.md
在.md 目錄下回發現preview 文件夾,打開html文件便可 ,如圖。
shell
下面是命令參數詳解npm
-h, --help output usage information -V, --version output the version number -f, --file [filename] default is README.md -o, --open open in browser -v, --verbose 打印詳細日誌