Brian M. Hunt
Brian M. Hunt

Reputation: 83868

Python module for wiki markup

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.

Upvotes: 30

Views: 16733

Answers (4)

Swaroop C H
Swaroop C H

Reputation: 17044

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

Upvotes: 21

jedie
jedie

Reputation: 1853

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/

Upvotes: 2

zuber
zuber

Reputation: 3487

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.

Upvotes: 7

tghw
tghw

Reputation: 25333

Django uses the following libraries for markup:

You can see how they're used in Django.

Upvotes: 9

Related Questions