Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/claremacrae/markdown_to_dokuwiki.py
- Owner: claremacrae
- Created: 2013-06-26T20:31:40.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-29T08:12:28.000Z (over 10 years ago)
- Last Synced: 2024-05-01T12:41:07.835Z (9 months ago)
- Language: Python
- Homepage:
- Size: 188 KB
- Stars: 25
- Watchers: 5
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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.4Running 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