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

Function Numbering

static/word2md/mammoth.browser.js:1785–1804  ·  view source on GitHub ↗
(nums, abstractNums, styles)

Source from the content-addressed store, hash-verified

1783exports.defaultNumbering = new Numbering({});
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
1803 };
1804}
1805
1806function readNumberingXml(root, options) {
1807 if (!options || !options.styles) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected