highmark-markdown 0.0.362 → 0.0.364

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,16 +8,16 @@ export function nestNodes(nodes) {
8
8
  const nestedNodesStack = NestedNodeStack.fromNothing();
9
9
 
10
10
  nodes.forEach((node) => {
11
- const level = node.getLevel();
11
+ const depth = node.getDepth();
12
12
 
13
- let nestedNodesStackLevel = nestedNodesStack.getLevel()
13
+ let nestedNodesStackDepth = nestedNodesStack.getDepth()
14
14
 
15
- while (nestedNodesStackLevel < level) {
16
- nestedNodesStackLevel = nestedNodesStack.increment();
15
+ while (nestedNodesStackDepth < depth) {
16
+ nestedNodesStackDepth = nestedNodesStack.increment();
17
17
  }
18
18
 
19
- while (nestedNodesStackLevel > level) {
20
- nestedNodesStackLevel = nestedNodesStack.decrement();
19
+ while (nestedNodesStackDepth > depth) {
20
+ nestedNodesStackDepth = nestedNodesStack.decrement();
21
21
  }
22
22
 
23
23
  const nestedNode = NestedNode.fromNode(node);
@@ -88,11 +88,11 @@ class NestedNodeStack {
88
88
  return nestedNode;
89
89
  }
90
90
 
91
- getLevel() {
91
+ getDepth() {
92
92
  const nestedNodesLength = this.nestedNodes.length,
93
- level = nestedNodesLength; ///
93
+ depth = nestedNodesLength; ///
94
94
 
95
- return level;
95
+ return depth;
96
96
  }
97
97
 
98
98
  increment() {
@@ -100,17 +100,17 @@ class NestedNodeStack {
100
100
 
101
101
  this.addNestedNode(nestedNode);
102
102
 
103
- const level = this.getLevel();
103
+ const depth = this.getDepth();
104
104
 
105
- return level;
105
+ return depth;
106
106
  }
107
107
 
108
108
  decrement() {
109
109
  this.removeNestedNode();
110
110
 
111
- const level = this.getLevel();
111
+ const depth = this.getDepth();
112
112
 
113
- return level;
113
+ return depth;
114
114
  }
115
115
 
116
116
  addNestedNode(nestedNode) {