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

Function startLinting

static/editor.md/lib/codemirror/addon/lint/lint.js:120–127  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

118 }
119
120 function startLinting(cm) {
121 var state = cm.state.lint, options = state.options;
122 var passOptions = options.options || options; // Support deprecated passing of `options` property in options
123 if (options.async || options.getAnnotations.async)
124 options.getAnnotations(cm.getValue(), updateLinting, passOptions, cm);
125 else
126 updateLinting(cm, options.getAnnotations(cm.getValue(), passOptions, cm));
127 }
128
129 function updateLinting(cm, annotationsNotSorted) {
130 clearMarks(cm);

Callers 2

onChangeFunction · 0.85
lint.jsFile · 0.85

Calls 1

updateLintingFunction · 0.85

Tested by

no test coverage detected