(input, styleMap)
| 2439 | } |
| 2440 | |
| 2441 | function embedStyleMap(input, styleMap) { |
| 2442 | return unzip.openZip(input) |
| 2443 | .tap(function(docxFile) { |
| 2444 | return docxStyleMap.writeStyleMap(docxFile, styleMap); |
| 2445 | }) |
| 2446 | .then(function(docxFile) { |
| 2447 | return { |
| 2448 | toBuffer: docxFile.toBuffer |
| 2449 | }; |
| 2450 | }); |
| 2451 | } |
| 2452 | |
| 2453 | exports.styleMapping = function() { |
| 2454 | throw new Error('Use a raw string instead of mammoth.styleMapping e.g. "p[style-name=\'Title\'] => h1" instead of mammoth.styleMapping("p[style-name=\'Title\'] => h1")'); |
nothing calls this directly
no outgoing calls
no test coverage detected