From 137f9e20d36df58590dedad6f0ab885ed435e2dd Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 25 Feb 2016 19:28:11 +0000 Subject: Allow italic runs to be configured using style mapping --- lib/document-to-html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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"); -- cgit v1.2.3