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

Function findLevel

static/word2md/mammoth.browser.js:1786–1799  ·  view source on GitHub ↗
(numId, level)

Source from the content-addressed store, hash-verified

1784
1785function Numbering(nums, abstractNums, styles) {
1786 function findLevel(numId, level) {
1787 var num = nums[numId];
1788 if (num) {
1789 var abstractNum = abstractNums[num.abstractNumId];
1790 if (abstractNum.numStyleLink == null) {
1791 return abstractNums[num.abstractNumId].levels[level];
1792 } else {
1793 var style = styles.findNumberingStyleById(abstractNum.numStyleLink);
1794 return findLevel(style.numId, level);
1795 }
1796 } else {
1797 return null;
1798 }
1799 }
1800
1801 return {
1802 findLevel: findLevel

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected