MCPcopy Create free account
hub / github.com/witheve/Eve / parseOpenBracket

Function parseOpenBracket

src/commonmark.js:1574–1584  ·  view source on GitHub ↗
(block)

Source from the content-addressed store, hash-verified

1572
1573// Add open bracket to delimiter stack and add a text node to block's children.
1574var parseOpenBracket = function(block) {
1575 var startpos = this.pos;
1576 this.pos += 1;
1577
1578 var node = text('[');
1579 block.appendChild(node);
1580
1581 // Add entry to stack for this opener
1582 this.addBracket(node, startpos, false);
1583 return true;
1584};
1585
1586// IF next character is [, and ! delimiter to delimiter stack and
1587// add a text node to block's children. Otherwise just add a text node.

Callers

nothing calls this directly

Calls 1

textFunction · 0.85

Tested by

no test coverage detected