diff options
| -rw-r--r-- | lib/document-to-html.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js index 4c58979..740fc30 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -64,13 +64,11 @@ function DocumentConversion(options) { } }); } - html = replaceDeferred(html); - var writer = writers.writer({ prettyPrint: options.prettyPrint, outputFormat: options.outputFormat }); - Html.write(writer, Html.simplify(html)); + Html.write(writer, Html.simplify(replaceDeferred(html))); return new results.Result(writer.asString(), messages); }); } |
