Since Pandoc 1.13, Pandoc now contains my implementation of DokuWiki writing - and many more features are implementated there than in this script. So this script is now pretty-much redundant.
Python script to convert a Markdown file to Dokuwiki
This is based on my SuperUser answer to my question How to convert Markdown files to Dokuwiki, on a PC.
Since that answer, I've added some new features, and published my testsuite.
Note that pandoc must be in the your path, for this to work.
I have tested it with the following versions of Pandoc:
To test the code, run:
python markdown_to_dokuwiki_testsuite.py
This simply converts the sample file ''markdown_to_dokuwiki_test_input.md'' to Dokuwiki format, and tests that the output matches the contents of ''markdown_to_dokuwiki_test_expected.txt''
Successful output looks something like this:
.
----------------------------------------------------------------------
Ran 1 test in 0.114s
OK