Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/claremacrae/markdown_to_dokuwiki.py

Python script to convert a Markdown file to Dokuwiki
https://github.com/claremacrae/markdown_to_dokuwiki.py

Last synced: 3 months ago
JSON representation

Python script to convert a Markdown file to Dokuwiki

Awesome Lists containing this project

README

        

markdown_to_dokuwiki.py
=======================

## Stop-Press - August 2014

**Since [Pandoc 1.13](http://johnmacfarlane.net/pandoc/releases.html#pandoc-1.13-15-august-2014), 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](http://superuser.com/questions/402097/how-to-convert-markdown-files-to-dokuwiki-on-a-pc).

Since that answer, I've added some new features, and published my testsuite.

Pandoc needed!
================

Note that [pandoc](https://github.com/jgm/pandoc) must be in the your path, for this to work.

I have tested it with the following versions of Pandoc:

* 1.9.1.2
* 1.9.3
* 1.10.1
* 1.11.1
* 1.12.4

Running the TestSuite
=====================

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