python-textile

python-textile is a Python port of Textile, Dean Allen’s humane web text generator.

Installation

Install the ‘textile’ folder on your python path, or pip install textile.
Optional dependencies include PIL/Pillow (for checking images size)
and regex (for faster unicode-aware string matching).

Usage



>>> import textile
>>> s = “”“
This is a test.

… * One
… * Two
… * Three

… Link to Slashdot
… “”“
>>> html = textile.textile(s)
>>> print html

This is a test.

Link to Slashdot

>>>

Notes: