diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-04-01 12:42:36 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-04-01 12:42:36 +0100 |
| commit | c9f133942a541fbcae95720b5b0480b94e36c00f (patch) | |
| tree | d9c245a049f870acdee25d422359eb49bb34547c /lib | |
| parent | f397a47dd2bb9e294ff86d4a4747234b85887819 (diff) | |
Convert document in the same way as other elements
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/documents.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/documents.js b/lib/documents.js index cee1b48..eebd607 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -18,7 +18,7 @@ function DocumentConverter(options) { function convertToHtml(document) { var html = new HtmlGenerator(); - convertElements(document.children, html); + elementToHtml(document, html); return q.when({ html: html.asString() @@ -48,6 +48,9 @@ function DocumentConverter(options) { } var elementConverters = { + "document": function(document, html) { + convertElements(document.children, html); + }, "paragraph": convertParagraph, "run": function(element, html) { convertElements(element.children, html); |
