Python module for wiki markup

2019-01-16 18:41发布

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.

4条回答
何必那么认真
2楼-- · 2019-01-16 19:24

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.

查看更多
Explosion°爆炸
3楼-- · 2019-01-16 19:30

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/

查看更多
家丑人穷心不美
4楼-- · 2019-01-16 19:41

Django uses the following libraries for markup:

You can see how they're used in Django.

查看更多
beautiful°
5楼-- · 2019-01-16 19:47

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

查看更多
登录 后发表回答