使用i5ting_toc 預覽 markdown 文件,生成樹形菜單方便查看


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          打印詳細日志

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM