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

Function makeMarker

static/editor.md/lib/codemirror/addon/lint/lint.js:82–95  ·  view source on GitHub ↗
(labels, severity, multiple, tooltips)

Source from the content-addressed store, hash-verified

80 }
81
82 function makeMarker(labels, severity, multiple, tooltips) {
83 var marker = document.createElement("div"), inner = marker;
84 marker.className = "CodeMirror-lint-marker-" + severity;
85 if (multiple) {
86 inner = marker.appendChild(document.createElement("div"));
87 inner.className = "CodeMirror-lint-marker-multiple";
88 }
89
90 if (tooltips != false) CodeMirror.on(inner, "mouseover", function(e) {
91 showTooltipFor(e, labels, inner);
92 });
93
94 return marker;
95 }
96
97 function getMaxSeverity(a, b) {
98 if (a == "error") return a;

Callers 1

updateLintingFunction · 0.85

Calls 1

showTooltipForFunction · 0.85

Tested by

no test coverage detected