diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/document-to-html.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js index 94c8b6a..5c4db50 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -42,7 +42,9 @@ function DocumentConverter(options) { function convertParagraph(element, html, messages, callback) { html.satisfyPath(styleForParagraph(element, messages)); - convertElements(element.children, html, messages, callback); + process.nextTick(function() { + convertElements(element.children, html, messages, callback); + }); } function styleForParagraph(element, messages) { |
