(text)
| 128586 | } |
| 128587 | ts.buildLinkParts = buildLinkParts; |
| 128588 | function skipSeparatorFromLinkText(text) { |
| 128589 | var pos = 0; |
| 128590 | if (text.charCodeAt(pos++) === 124 /* CharacterCodes.bar */) { |
| 128591 | while (pos < text.length && text.charCodeAt(pos) === 32 /* CharacterCodes.space */) |
| 128592 | pos++; |
| 128593 | return text.slice(pos); |
| 128594 | } |
| 128595 | return text; |
| 128596 | } |
| 128597 | function findLinkNameEnd(text) { |
| 128598 | if (text.indexOf("()") === 0) |
| 128599 | return 2; |