diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-11-19 14:53:45 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-11-19 14:53:45 +0000 |
| commit | a7146d18d1183fbe0203025f5e0e6aee5cd3775c (patch) | |
| tree | 0742a812f4488265ca33ff7221bd97b78c500e53 /README.md | |
| parent | 599b3f17555a9d0c03ff040df6dca232b152a6f0 (diff) | |
Include embedded style map when explicit style map is set
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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: |
