Thanks, that’s what I needed to send me down the right path.
The code posted doesn’t work for uncached snippets, because it seems parseDocumentOutput only works on cached snippets. If you look at line 437 in the document parser in 0.9.6.1 you will see:
$this->documentOutput= str_replace('[!', '[[', $this->documentOutput);
$this->documentOutput= str_replace('!]', ']]', $this->documentOutput);
// Parse document source
$this->documentOutput= $this->parseDocumentSource($this->documentOutput);
I changed it to this and my uncached snippet is now parsed.
Andy