From 18459a297526a9067e7994ffff939a31d42bbc1d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 16 Aug 2015 13:52:04 +0100 Subject: Refer to style maps in docx as embedded style maps --- lib/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/index.js b/lib/index.js index e2ff657..a07b409 100644 --- a/lib/index.js +++ b/lib/index.js @@ -13,7 +13,7 @@ exports.extractRawText = extractRawText; exports.images = require("./images"); exports.transforms = require("./transforms"); exports.underline = require("./underline"); -exports.writeStyleMapToDocx = writeStyleMapToDocx; +exports.embedStyleMap = embedStyleMap; function convertToHtml(input, options) { return convert(input, options); @@ -89,7 +89,7 @@ function convertElementToRawText(element) { } } -function writeStyleMapToDocx(input, styleMap) { +function embedStyleMap(input, styleMap) { return unzip.openZip(input) .then(function(docxFile) { docxStyleMap.writeStyleMap(docxFile, styleMap); -- cgit v1.2.3