* Helper functions
(tokens, idx)
| 4313 | */ |
| 4314 | |
| 4315 | function nextToken(tokens, idx) { |
| 4316 | if (++idx >= tokens.length - 2) { |
| 4317 | return idx; |
| 4318 | } |
| 4319 | if ((tokens[idx].type === 'paragraph_open' && tokens[idx].tight) && |
| 4320 | (tokens[idx + 1].type === 'inline' && tokens[idx + 1].content.length === 0) && |
| 4321 | (tokens[idx + 2].type === 'paragraph_close' && tokens[idx + 2].tight)) { |
| 4322 | return nextToken(tokens, idx + 2); |
| 4323 | } |
| 4324 | return idx; |
| 4325 | } |
| 4326 | |
| 4327 | /** |
| 4328 | * Check to see if `\n` is needed before the next token. |
no outgoing calls
no test coverage detected
searching dependent graphs…