From a7146d18d1183fbe0203025f5e0e6aee5cd3775c Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 19 Nov 2016 14:53:45 +0000 Subject: Include embedded style map when explicit style map is set --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index fa4cbd6..027c494 100644 --- a/README.md +++ b/README.md @@ -345,6 +345,11 @@ Converts the source document to HTML. each element is expected to be a string representing a single style mapping. See "Writing style maps" for a reference to the syntax for style maps. + * `includeEmbeddedStyleMap`: by default, + if the document contains an embedded style, then it is combined with the default style map. + To ignore any embedded style maps, + set `options.includeEmbeddedStyleMap` to `false`. + * `includeDefaultStyleMap`: by default, the style map passed in `styleMap` is combined with the default style map. To stop using the default style map altogether, @@ -407,7 +412,7 @@ Each paragraph is followed by two newlines. Given an existing docx file, `embedStyleMap` will generate a new docx file with the passed style map embedded. When the new docx file is read by Mammoth, -it will use the embedded style if no explicit style map is provided. +it will use the embedded style map. * `input`: an object describing the source document. On node.js, the following inputs are supported: -- cgit v1.2.3