Replace single-pass parser by parser (DefaultParser) + compiler (SimpleDocument) steps, optimize rendering.