Added support for custom document converter.
 The converter is invoked at the end of the HTML transformation step.