Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Python port of Textile, A humane web text generator
Python
branch: master

Merge pull request #10 from thmo/master

Support Pillow by using PIL in import statement
latest commit 00e223565e
Sebastian authored
Failed to load latest commit information.
textile Use the form of import of PIL that is pillow compatible.
.gitignore Merge branch 'master' of git://github.com/chrisdrackett/python-textile
CONTRIBUTORS.txt updating package info.
LICENSE.txt reorg and making installable
README.textile
TODO Update TODO to reflect reality.
setup.cfg Disable HTML coverage output.
setup.py Added 2to3 support to setup for compatability with Python 3.x

README.textile

python-textile

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

Usage

Install the ‘textile’ folder on your python path, or easy_install http://github.com/chrisdrackett/python-textile/tarball/master#egg=python-textile.


>>> import textile
>>> s = """
... _This_ is a *test.*
... 
... * One
... * Two
... * Three
... 
... Link to "Slashdot":http://slashdot.org/
... """
>>> html = textile.textile(s)
>>> print html
<em>This</em> is a <strong>test.</strong>
	<ul>
		<li>One</li>
		<li>Two</li>
		<li>Three</li>
	</ul>
	<p>Link to <a href="http://slashdot.org/">Slashdot</a>
</p>
>>> 

Something went wrong with that request. Please try again.