Document tools

MediaWiki to Markdown

Convert mediawiki to markdown with pandoc. Runs entirely on your device.

Runs on your device. The file is never uploaded.

MediaWiki to Markdown takes the wikitext out of a wiki edit box and rewrites it as Markdown, pipe-and-brace tables becoming Markdown tables and File references becoming image links. Give it the source view, not the rendered page. A template call comes across as it stands, since expanding one means asking that wiki what it holds.

Input

Questions

Why do my templates come out empty or wrong?

Because expanding a template means asking the wiki what that template contains, and nothing here contacts a network. Pandoc converts the wikitext you give it, so a template call is not turned into the content you see on the live page. Copy the rendered page as HTML and use HTML to Markdown instead if the expanded result is what you need.

Where do I get the wikitext to convert?

From the wiki itself: open the page, choose to edit its source, and copy what is in the edit box into a file. The pandoc converters here never look at your file extension, so it can be .wiki, .txt or anything else; the format is fixed by the tool you picked, not by the name.

What happens to images?

A File reference becomes a Markdown image link using the same name. The picture lives on the wiki and is not downloaded, since this tool has no network access at all, so the link will not resolve until you place the image next to the Markdown yourself.

Do tables convert?

Yes. MediaWiki table markup, the pipe and brace syntax, is read by pandoc and written out as a Markdown table. Complex tables with row and column spans are simplified, because pandoc's Markdown table syntax cannot express every span a wiki table can.

How do I convert Markdown into wikitext?

Use Markdown to MediaWiki, which produces the markup you paste back into an edit box, named with a .wiki extension. Neither direction publishes anything: pandoc runs as WebAssembly in a Web Worker in this tab, and the request counter on the homepage stays at zero.

Related Document tools