Pandoc

本頁使用了標題或全文手工轉換
維基百科,自由的百科全書
Pandoc
原作者John MacFarlane英語John MacFarlane (philosopher)
首次發布0.1 / 2006年8月14日,​17年前​(2006-08-14[1]
當前版本
  • 3.1.13 (2024年4月7日;穩定版本)[2]
編輯維基數據鏈接
源代碼庫 編輯維基數據鏈接
編程語言Haskell
操作系統FreeBSD, NetBSD, Linux, Windows, Mac OS X
類型標記語言轉換工具
許可協議GNU GPL[3]
網站pandoc.org

Pandoc是使用Haskell語言編寫的一款跨平台自由開源命令行界面標記語言轉換工具,可實現不同標記語言間的格式轉換,堪稱該領域中的「瑞士軍刀[3]

Pandoc支持的標記語言格式[編輯]

Pandoc可讀取的源格式 Pandoc可生成的目標格式

Pandoc的使用[編輯]

Pandoc的基本指令格式是[5]

pandoc [options] [input-file] ...

簡單的格式轉換指令:

pandoc -o output.html input.md

其中-o ouput.html表示輸出文件為output.html,input.md是輸入文件。

Pandoc會根據文件的後綴名自動判斷格式,用戶也可以顯式地指定輸入文件和輸出文件格式:

pandoc -f markdown -t html -o output.html input.md

其中-f markdown表示輸入文件格式為Markdown,-t html表示輸出文件格式為HTML。

詳細的指令參數請參見Pandoc用戶手冊頁面存檔備份,存於網際網路檔案館)。

參考資料[編輯]

  1. ^ Pandoc - changelog. [2020-11-26]. (原始內容存檔於2020-07-23). 
  2. ^ Release 3.1.13. 2024年4月7日 [2024年4月23日]. 
  3. ^ 3.0 3.1 Pandoc - about. [2014-05-20]. (原始內容存檔於2021-01-25). 
  4. ^ Releases · jpm/pandoc. [2020-11-26]. 
  5. ^ Pandoc - getting started. [2014-05-20]. (原始內容存檔於2014-05-20). 

外部連結[編輯]