python-textile
python-textile copied to clipboard
A Python port of Textile, A humane web text generator
h1. PyTextile
PyTextile is a simple text to HTML converter.
h2. Usage
>>> import textile
>>> textile.__version__
'2.1.4'
>>> s = """
... _This_ is a *test.*
...
... * One
... * Two
... * Three
...
... Link to "Slashdot":http://slashdot.org/
... """
>>> html = textile.textile(s)
>>> print html
This is a test.
- One
- Two
- Three
Link to Slashdot
>>>