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 ab02b64..cb5ec16 100644
--- a/lib/document-to-html.js
+++ b/lib/document-to-html.js
@@ -119,7 +119,7 @@ function DocumentConversion(options) {
result = wrapInNonFreshElement(result, "sup");
}
if (run.isItalic) {
- result = wrapInNonFreshElement(result, "em");
+ result = convertRunProperty(result, "italic", "em");
}
if (run.isBold) {
result = convertRunProperty(result, "bold", "strong");