Changes to original textpattern-based PHP textile implementation as forked from Textpattern at r3359.