- Pandoc - index
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)
- Pandoc - Installing pandoc
Pandoc is in the Debian, Ubuntu, Slackware, Arch, Fedora, NixOS, openSUSE, gentoo and Void repositories To get the latest release, we provide a binary package for amd64 architecture on the download page
- Pandoc User’s Guide
For the full lists of input and output formats, see the --from and --to options below Pandoc can also produce PDF output: see creating a PDF, below Pandoc’s enhanced version of Markdown includes syntax for tables, definition lists, metadata blocks, footnotes, citations, math, and much more See below under Pandoc’s Markdown
- Getting started with pandoc
You’ll probably want to use pandoc to convert a file, not to read text from the terminal That’s easy, but first we need to create a text file in our pandoc-test subdirectory Important: To create a text file, you’ll need to use a text editor, not a word processor like Microsoft Word On Windows, you can use Notepad (in Accessories)
- Pandoc - Demos
pandoc -s example30 docx -t markdown -o example35 md EPUB to plain text: pandoc MANUAL epub -t plain -o example36 text Using a template to produce a table from structured data: pandoc fishwatch yaml -t rst --template fishtable rst -o fish rst # see also the partial species rst Converting a bibliography from BibTeX to CSL JSON:
- Templates - pandoc. org
6 Templates When the -s --standalone option is used, pandoc uses a template to add header and footer material that is needed for a self-standing document To see the default template that is used, just type pandoc -D *FORMAT* where FORMAT is the name of the output format A custom template can be specified using the --template option
- Variables - pandoc. org
Pandoc sets these variables automatically in response to options or document contents; users can also modify them These vary depending on the output format, and include the following:
- Tables - pandoc. org
Note: pandoc also recognizes pipe tables of the following form, as can be produced by Emacs’ orgtbl-mode: | One | Two | |-----+-------| | my | table | | is | nice | The difference is that + is used instead of | Other orgtbl features are not supported In particular, to get non-default column alignment, you’ll need to add colons as above
|