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

Function clearMarks

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

Source from the content-addressed store, hash-verified

72 }
73
74 function clearMarks(cm) {
75 var state = cm.state.lint;
76 if (state.hasGutter) cm.clearGutter(GUTTER_ID);
77 for (var i = 0; i < state.marked.length; ++i)
78 state.marked[i].clear();
79 state.marked.length = 0;
80 }
81
82 function makeMarker(labels, severity, multiple, tooltips) {
83 var marker = document.createElement("div"), inner = marker;

Callers 2

updateLintingFunction · 0.70
lint.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected