How to convert Markdown files to Dokuwiki, on a PC
- by Clare Macrae
I'm looking for a tool or script to convert Markdown files to Dokuwiki format, that will run on a PC.
This is so that I can use MarkdownPad on a PC to create initial drafts of documents, and then convert them to Dokuwiki format, to upload to a Dokuwiki installation that I have no control over. (This means that the Markdown plugin is no use to me.)
I could spend time writing a Python script to do the conversion myself, but I'd like to avoid spending time on this, if such a thing exists already.
The Markdown tags I'd like to have supported/converted are:
Heading levels 1 - 5
Bold, italic, underline, fixed width font
Numbered and unnumbered lists
Hyperlinks
Horizontal rules
Does such a tool exist, or is there a good starting point available?
Things I've found and considered
I initially thought that txt2tags would be helpful, but although it can write both markdown and Dokuwiki, it is very tied to its own specific input format
I've also seen Markdown2Dokuwiki, and although I'd certainly be willing to use a sed script, even on a PC, this only supports a tiny, tiny part of Markdown's syntax.
python-markdown2 also sounded promising, but it only writes out HTML.
pandoc - but it doesn't support Dokuwiki output
MultiMarkdown - does not appear to support Dokuwiki output