利用pandoc進行文檔格式轉換

pandoc支持多種文檔格式的轉換

支持如下格式的轉換:

If you need to convert files from one markup format into another, pandoc is your swiss-army knife. Pandoc can convert between the following formats:

(← = conversion from; → = conversion to; ↔︎ = conversion from and to)

Lightweight markup formats

↔︎ Markdown (including CommonMark and GitHub-flavored Markdown)
↔︎ reStructuredText
→ AsciiDoc
↔︎ Emacs Org-Mode
↔︎ Emacs Muse
↔︎ Textile
← txt2tags

HTML formats

↔︎ (X)HTML 4
↔︎ HTML5

Ebooks

↔︎ EPUB version 2 or 3
↔︎ FictionBook2

Documentation formats

→ GNU TexInfo
↔︎ Haddock markup

Roff formats

↔︎ roff man
→ roff ms

TeX formats

↔︎ LaTeX
→ ConTeXt

XML formats

↔︎ DocBook version 4 or 5
↔︎ JATS
→ TEI Simple

Outline formats

↔︎ OPML

Data formats

← CSV tables

Word processor formats

↔︎ Microsoft Word docx
↔︎ OpenOffice/LibreOffice ODT
→ OpenDocument XML
→ Microsoft PowerPoint

Interactive notebook formats

↔︎ Jupyter notebook (ipynb)

Page layout formats

→ InDesign ICML

Wiki markup formats

↔︎ MediaWiki markup
↔︎ DokuWiki markup
← TikiWiki markup
← TWiki markup
→ Vimwiki markup
→ XWiki markup
→ ZimWiki markup
↔︎ Jira wiki markup

Slide show formats

→ LaTeX Beamer
→ Slidy
→ reveal.js
→ Slideous
→ S5
→ DZSlides

Custom formats

→ custom writers can be written in lua.

PDF

→ via pdflatexxelatexlualatexpdfroffwkhtml2pdfprince, or weasyprint.

具體可以查看官網:https://www.pandoc.org/

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章