Use Textpattern\Fluxbb\Textile\Parser class.