Convert between MediaWiki and other formats: Difference between revisions

From HPCwiki
Jump to navigation Jump to search
No edit summary
Line 16: Line 16:
pandoc -f mediawiki -t markdown -s myfile.mw -o myfile.md
pandoc -f mediawiki -t markdown -s myfile.mw -o myfile.md
</source>
</source>
== See also ==
[[Bioinformatics_protocols_ABG_Chairgroup | Bioinformatics tips, tricks, workflows at ABGC]]
== External links ==
[http://en.wikipedia.org/wiki/Markup_language Wikipedia entry on markup languages]

Revision as of 22:24, 26 March 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:

<source lang=bash> sudo apt-get install pandoc </source>

The following example translates from MediaWiki format to Markdown format:

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

See also

Bioinformatics tips, tricks, workflows at ABGC

External links

Wikipedia entry on markup languages