diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-04-01 12:58:53 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-04-01 12:58:53 +0100 |
| commit | ed1473a31a6294617bf239cc1fd15272fd7c9946 (patch) | |
| tree | e1b90ff85bf5245b2978cffd8725d35dd9c43dce /lib/documents.js | |
| parent | 9793af8582ba804b5e80fd7445abb6213b87be62 (diff) | |
Add conversion to HTML of italic runs
Diffstat (limited to 'lib/documents.js')
| -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 1b52bf4..41d49a5 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -51,7 +51,10 @@ function DocumentConverter(options) { function convertRun(run, html) { var runHtml = new HtmlGenerator(); if (run.properties.isBold) { - runHtml.style(styles.elements(["strong"])); + runHtml.push(styles.element("strong")); + } + if (run.properties.isItalic) { + runHtml.push(styles.element("em")); } convertElements(run.children, runHtml); runHtml.closeAll(); |
