MCPcopy Create free account
hub / github.com/TruthHun/BookStack / embedStyleMap

Function embedStyleMap

static/word2md/mammoth.browser.js:2441–2451  ·  view source on GitHub ↗
(input, styleMap)

Source from the content-addressed store, hash-verified

2439}
2440
2441function 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
2453exports.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")');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected