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

Function readNumberingProperties

static/word2md/mammoth.browser.js:1282–1290  ·  view source on GitHub ↗
(element, numbering)

Source from the content-addressed store, hash-verified

1280
1281
1282function readNumberingProperties(element, numbering) {
1283 var level = element.firstOrEmpty("w:ilvl").attributes["w:val"];
1284 var numId = element.firstOrEmpty("w:numId").attributes["w:val"];
1285 if (level === undefined || numId === undefined) {
1286 return null;
1287 } else {
1288 return numbering.findLevel(numId, level);
1289 }
1290}
1291
1292var supportedImageTypes = {
1293 "image/png": true,

Callers 1

BodyReaderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected