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

Function collapseAlternateContent

static/word2md/mammoth.browser.js:1898–1909  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

1896
1897
1898function collapseAlternateContent(node) {
1899 if (node.type === "element") {
1900 if (node.name === "mc:AlternateContent") {
1901 return node.first("mc:Fallback").children;
1902 } else {
1903 node.children = _.flatten(node.children.map(collapseAlternateContent, true));
1904 return [node];
1905 }
1906 } else {
1907 return [node];
1908 }
1909}
1910
1911},{"../promises":23,"../xml":34,"underscore":153}],13:[function(require,module,exports){
1912exports.readRelationships = readRelationships;

Callers 1

readFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected