Convert between MediaWiki and other formats

From HPCwiki
Revision as of 17:11, 12 February 2015 by Megen002 (talk | contribs) (→‎Pandoc)
Jump to navigation Jump to search

There are various programs that can convert to and from MediaWiki format, as used in this Wiki, and other formats. This page lists some of them and provides explanation of how to use them.

Pandoc

Pandoc is an open source tool that can convert between different markup styles and languages. You can use it online but that is limited to small documents only. There is also a CLI version. On Linux systems the CLI version might be available from the repository. E.g. on Ubuntu:

<code=bash> sudo apt-get install pandoc

For instance, converting between MediaWiki and Markdown would work like this:

<code=bash> pandoc -f mediawiki -t markdown -s myfile.mw -o myfile.md