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

Function skipMarker

js/remarkable.js:4531–4551  ·  view source on GitHub ↗
(state, line)

Source from the content-addressed store, hash-verified

4529// Search `[:~][\n ]`, returns next pos after marker on success
4530// or -1 on fail.
4531function skipMarker(state, line) {
4532 var pos, marker,
4533 start = state.bMarks[line] + state.tShift[line],
4534 max = state.eMarks[line];
4535
4536 if (start >= max) { return -1; }
4537
4538 // Check bullet
4539 marker = state.src.charCodeAt(start++);
4540 if (marker !== 0x7E/* ~ */ && marker !== 0x3A/* : */) { return -1; }
4541
4542 pos = state.skipSpaces(start);
4543
4544 // require space after ":"
4545 if (start === pos) { return -1; }
4546
4547 // no empty definitions, e.g. " : "
4548 if (pos >= max) { return -1; }
4549
4550 return pos;
4551}
4552
4553function markTightParagraphs(state, idx) {
4554 var i, l,

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…