Convert between MediaWiki and other formats: Difference between revisions
Jump to navigation
Jump to search
(→Pandoc) |
(→Pandoc) |
||
Line 9: | Line 9: | ||
<code lang=bash> | <code lang=bash> | ||
sudo apt-get install pandoc | sudo apt-get install pandoc | ||
</code> | |||
The following example translates from MediaWiki format to Markdown format: | |||
<code lang=bash> | |||
pandoc -f mediawiki -t markdown -s myfile.mw -o myfile.md | |||
</code> | </code> |
Revision as of 17:17, 12 February 2015
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.
There is a web version of Pandoc but that seems limited to small documents only. There's also a CLI version, and if you are running a Linux desktop machine chances are you can install it from the repository. E.g. on Ubuntu 14.04:
sudo apt-get install pandoc
The following example translates from MediaWiki format to Markdown format:
pandoc -f mediawiki -t markdown -s myfile.mw -o myfile.md