python-textile
python-textile copied to clipboard
A Python port of Textile, A humane web text generator
This change selects which list type (ordered, unordered) by the last character of the sequence. This does not affect exiting lists but makes writing lists easier the following way: ```...
``` >>> import textile ``` This is OK: ``` >>> textile.textile("Ala ma kota[1]") '\tAla ma kota1' ``` But this is not: ``` >>> textile.textile("Ala ma kota”[1]") '\tAla ma kota\xe2\x80\x9d[1]' >>>...
(_text_) should return: (text) It currently returns: (_text_)
``` In [5]: from textile import textile In [7]: textile('http://en.wikipedia.org/wiki/Game_(rapper)') Out[7]: 'http://en.wikipedia.org/wiki/Game_(rapper)' ```
It would be really nice if it was possible to have URLs in the input string turned into links: ``` >>> from textile import textile >>> textile('http://www.google.co.uk/") 'http://www.google.co.uk' ```
In Textile 2.0 (http://textile.thresholdstate.com/) this is valid: H[~2~]O Putting brackets allow you get around having white space before modifers. This did not seem to work in Python Textile.
This currently doesn't work on the latest released version: `_italic_word_`. The textism site renders it correctly leading me to believe this project should too. :)
looks like the classid regex's forward-looking condition doesn't like the alt tag in parentheses on images. Example: !(myclass)/assets/photo.png(cool stuff)!