MCPcopy Create free account
hub / github.com/TruthHun/BookStack / attachMarkedSpans

Function attachMarkedSpans

static/editor.md/lib/codemirror/lib/codemirror.js:6300–6305  ·  view source on GitHub ↗
(line, spans)

Source from the content-addressed store, hash-verified

6298 line.markedSpans = null;
6299 }
6300 function attachMarkedSpans(line, spans) {
6301 if (!spans) return;
6302 for (var i = 0; i < spans.length; ++i)
6303 spans[i].marker.attachLine(line);
6304 line.markedSpans = spans;
6305 }
6306
6307 // Helpers used when computing which overlapping collapsed span
6308 // counts as the larger one.

Callers 2

codemirror.jsFile · 0.70
updateLineFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected