Textile

4.0.3 · active · verified Mon Apr 13

Textile is a Python port of Dean Allen's humane web text generator, allowing conversion of Textile-formatted text into HTML. The library is currently in active development, with version 4.0.3 released in September 2024, and receives periodic updates to maintain compatibility and introduce improvements.

Warnings

Install

Imports

Quickstart

Initialize the textile parser and convert a sample Textile string to HTML.

import textile

textile_input = """
_This_ is a *test.*\n
* One
* Two
* Three

Link to "Slashdot":http://slashdot.org/
"""

html_output = textile.textile(textile_input)
print(html_output)

view raw JSON →