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

Function readBlip

static/word2md/mammoth.browser.js:1218–1222  ·  view source on GitHub ↗
(element, blip)

Source from the content-addressed store, hash-verified

1216 }
1217
1218 function readBlip(element, blip) {
1219 var properties = element.first("wp:docPr").attributes;
1220 var altText = isBlank(properties.descr) ? properties.title : properties.descr;
1221 return readImage(findBlipImageFile(blip), altText);
1222 }
1223
1224 function isBlank(value) {
1225 return value == null || /^\s*$/.test(value);

Callers

nothing calls this directly

Calls 3

isBlankFunction · 0.70
readImageFunction · 0.70
findBlipImageFileFunction · 0.70

Tested by

no test coverage detected