Skip to content
Snippets Groups Projects
Commit 99c8d8b9 authored by Michal Čihař's avatar Michal Čihař
Browse files

[lint plugins] Allow lint plugins to output HTML formatted messages

This is opt-in, the plugin needs to produce message_html instead of
message to be rendered as HTML.
parent 03d99e58
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,11 @@
if (!severity) severity = "error";
var tip = document.createElement("div");
tip.className = "CodeMirror-lint-message-" + severity;
tip.appendChild(document.createTextNode(ann.message));
if (typeof ann.messageHTML != 'undefined') {
tip.innerHTML = ann.messageHTML;
} else {
tip.appendChild(document.createTextNode(ann.message));
}
return tip;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment