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

Function findPartRelatedToMainDocument

static/word2md/mammoth.browser.js:1632–1640  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

1630 defaultValue: relationshipsReader.defaultValue
1631 })(docxFile).then(function(documentRelationships) {
1632 function findPartRelatedToMainDocument(name) {
1633 return findPartPath({
1634 docxFile: docxFile,
1635 relationships: documentRelationships,
1636 relationshipType: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/" + name,
1637 basePath: zipfile.splitPath(mainDocumentPath).dirname,
1638 fallbackPath: "word/" + name + ".xml"
1639 });
1640 }
1641
1642 return {
1643 mainDocument: mainDocumentPath,

Callers 1

findPartPathsFunction · 0.70

Calls 1

findPartPathFunction · 0.70

Tested by

no test coverage detected