(block)
| 1572 | |
| 1573 | // Add open bracket to delimiter stack and add a text node to block's children. |
| 1574 | var 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. |