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

Function findBlipImageFile

static/word2md/mammoth.browser.js:1228–1240  ·  view source on GitHub ↗
(blip)

Source from the content-addressed store, hash-verified

1226 }
1227
1228 function findBlipImageFile(blip) {
1229 var embedRelationshipId = blip.attributes["r:embed"];
1230 var linkRelationshipId = blip.attributes["r:link"];
1231 if (embedRelationshipId) {
1232 return findEmbeddedImageFile(embedRelationshipId);
1233 } else {
1234 var imagePath = relationships.findTargetByRelationshipId(linkRelationshipId);
1235 return {
1236 path: imagePath,
1237 read: files.read.bind(files, imagePath)
1238 };
1239 }
1240 }
1241
1242 function readImageData(element) {
1243 var relationshipId = element.attributes['r:id'];

Callers 1

readBlipFunction · 0.70

Calls 1

findEmbeddedImageFileFunction · 0.70

Tested by

no test coverage detected