30

Is there a Python module for converting wiki markup to other languages (e.g. HTML)?

A similar question was asked here, What's the easiest way to convert wiki markup to html, but no Python modules are mentioned.

Just curious. :) Cheers.

Community
  • 1
  • 1
Brian M. Hunt
  • 81,008
  • 74
  • 230
  • 343
  • I am not sure of your exact application, but there is a great list [here](http://pypi.python.org/pypi?:action=search&term=wiki&submit=search). – GEOCHET Sep 30 '08 at 19:52

4 Answers4

21

mwlib provides ways of converting MediaWiki formatted text into HTML, PDF, DocBook and OpenOffice formats.

Timo Tijhof
  • 10,032
  • 6
  • 34
  • 48
Swaroop C H
  • 16,902
  • 10
  • 43
  • 50
9

Django uses the following libraries for markup:

You can see how they're used in Django.

tghw
  • 25,208
  • 13
  • 70
  • 96
7

You should look at a good parser for Creole syntax: creole.py. It can convert Creole (which is "a common wiki markup language to be used across different wikis") to HTML.

zuber
  • 3,449
  • 2
  • 24
  • 19
2

with python-creole you can convert html to creole and creole to html... So you can convert other markups to html and then to creole...

https://code.google.com/p/python-creole/

jedie
  • 1,803
  • 2
  • 13
  • 7
  • In new python-creole version, you can also convert html back in ReSt ;) (But only a subset of ReStructuredText) – jedie Aug 09 '11 at 12:00