|
Project Information
Featured
Links
|
aboutpython-creole is a OpenSource (GPL) Python lib for converting markups. python-creole is pure python. No external libs needed. Existing converters:
links
donationSend Bitcoins to 12QK6o7sGw7Dp3Fdfm2qKvyRqzuY2w5da9 about creoleCreole syntax looks like this: more info: http://en.wikipedia.org/wiki/Creole_(markup) exampleConvert creole markup to html code: >>> from creole import creole2html
>>> creole2html("This is **creole //markup//**")
u'<p>This is <strong>creole <i>markup</i></strong></p>\n'Convert html code back into creole markup: >>> from creole import html2creole >>> html2creole(u'<p>This is <strong>creole <i>markup</i></strong></p>\n') u'This is **creole //markup//**' Convert html code into ReStructuredText markup (needs docutils):: >>> from creole.rest2html.clean_writer import rest2html >>> html2rest(u'<p>This is <strong>ReStructuredText</strong> <em>markup</em>!</p>') u'This is **ReStructuredText** *markup*!' Convert html code into textile markup >>> from creole import html2textile >>> html2textile(u'<p>This is <strong>textile <i>markup</i></strong>!</p>') u'This is *textile __markup__*!' See also: /trunk/demo.py DownloadSource distribution available at Python Package Index: sourcecodeThe sourcecode hosted on github:
github project page: http://github.com/jedie/python-creole A git clone also exist here on google code. installYou can easy install it with: easy_install python-creole ohloh
|

