diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/document-to-html.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js index 9c1e5af..fa1c63b 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -1,6 +1,7 @@ var promises = require("./promises"); var async = require("async"); +var documents = require("./documents"); var htmlPaths = require("./html-paths"); var HtmlGenerator = require("./html-generator").HtmlGenerator; var results = require("./results"); @@ -103,6 +104,12 @@ function DocumentConversion(options) { if (run.isItalic) { runHtml.open(htmlPaths.element("em")); } + if (run.verticalAlignment === documents.verticalAlignment.superscript) { + runHtml.open(htmlPaths.element("sup")); + } + if (run.verticalAlignment === documents.verticalAlignment.subscript) { + runHtml.open(htmlPaths.element("sub")); + } if (run.isUnderline && options.convertUnderline) { options.convertUnderline(runHtml); } |
