How to export a whole wiki to Markdown

First a page is not just content but can contain metadata (we call the objects or xobjects). Some xobject properties are of type textarea and can contain markup too. So I guess you want to convert them too?

There are plenty of ways to do what you want but it requires a bit of coding:

I’ve written a quick groovy script to show you how it can be done, see https://snippets.xwiki.org/xwiki/bin/view/Extension/Export%20pages%20to%20Markdown/