i5ting_toc__tree
https://github.com/i5ting/i5ting_ztree_toc 是去哪兒網前段架構師狼叔編寫的一個jQuery插件,用於將markdown 轉化為帶樣式的html字符串,i5ting_toc是node環境下的實現工具,用於直接將markdown文件轉化為網頁,在瀏覽器打開 。
i5ting_toc
安裝
使用方式非常簡單,首先在全局安裝 。
npm install i5ting_toc -g
使用
首先編輯markdown 文件
之后cd到markdown目錄下,運行
i5ting_toc -f index.md
在.md 目錄下回發現preview 文件夾,打開html文件即可 ,如圖。
細節
下面是命令參數詳解
-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 打印詳細日志