aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/document-to-html.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js
index bce92c8..8033d8b 100644
--- a/lib/document-to-html.js
+++ b/lib/document-to-html.js
@@ -42,7 +42,7 @@ function DocumentConverter(options) {
function convertParagraph(element, html, messages, callback) {
html.satisfyPath(styleForParagraph(element, messages));
- process.nextTick(function() {
+ setImmediate(function() {
convertElements(element.children, html, messages, callback);
});
}