!https://travis-ci.org/textile/python-textile.svg!:https://travis-ci.org/textile/python-textile !https://codecov.io/github/textile/python-textile/coverage.svg!:https://codecov.io/github/textile/python-textile !https://img.shields.io/pypi/pyversions/textile! !https://img.shields.io/pypi/wheel/textile!
h1. python-textile
python-textile is a Python port of "Textile":http://txstyle.org/, Dean Allen's humane web text generator.
h2. Installation
@pip install textile@
Dependencies:
Optional dependencies include:
h2. Usage
bc.. import textile
s = """ ... This is a test. ... ... One ... Two ... * Three ... ... Link to "Slashdot":http://slashdot.org/ ... """ html = textile.textile(s) print html
This is a test.
<ul>
<li>One</li>
<li>Two</li>
<li>Three</li>
</ul>
<p>Link to <a href="http://slashdot.org/">Slashdot</a></p>
h3. Notes:
h3. Running Tests
To run the test suite, use pytest. pytest-cov
is required as well.
When textile is installed locally:
bc.. pytest
When textile is not installed locally:
bc.. PYTHONPATH=. pytest