Python module for wiki markup

青春壹個敷衍的年華 提交于 2019-12-28 09:39:49

问题


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.


回答1:


Django uses the following libraries for markup:

  • Markdown
  • Textile
  • reStructuredText

You can see how they're used in Django.




回答2:


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




回答3:


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.




回答4:


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/



来源:https://stackoverflow.com/questions/154592/python-module-for-wiki-markup

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!