3 module.exports = orderedItems;
5 /* Visit ordered list items.
8 * `node.start` and increments each following list item
14 * In `incrementListMarker: false` mode, does not increment
15 * each marker and stays on `node.start`:
20 function orderedItems(node) {
22 var fn = self.visitors.listItem;
23 var increment = self.options.incrementListMarker;
25 var start = node.start;
26 var children = node.children;
27 var length = children.length;
31 while (++index < length) {
32 bullet = (increment ? start + index : start) + '.';
33 values[index] = fn.call(self, children[index], node, index, bullet);
36 return values.join('\n');