Skip to content
This repository

A Python port of Textile, A humane web text generator

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 test
Octocat-spinner-32 textile
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .hgignore
Octocat-spinner-32 README.textile
Octocat-spinner-32 TODO
Octocat-spinner-32 setup.py
README.textile

PyTextile

PyTextile is a simple text to HTML converter.

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
<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.