MCPcopy
hub / github.com/dirk1983/deepseek / nextToken

Function nextToken

js/remarkable.js:4315–4325  ·  view source on GitHub ↗

* Helper functions

(tokens, idx)

Source from the content-addressed store, hash-verified

4313 */
4314
4315function 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.

Callers 1

remarkable.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…