Add prettyPrint option to convertToHtml