continuing the debate with myself:

What do you see as the benefits of translating into a javascript PRDocument type structure?

negatively, it would mean I'd have to more throughly understand the PRDocument structure and I wonder if it could be more fragile to code changes; whereas the wiki syntax is in use and so has to be maintained in a compatible form.