Use consistent name for marking markdown docs

This commit is contained in:
Matt Bierner 2017-09-13 22:55:07 -07:00
parent 68040fa300
commit 2dc19b668f
2 changed files with 3 additions and 3 deletions

View file

@ -231,7 +231,7 @@
white-space: pre-wrap;
}
.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.marked-docs {
.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs {
white-space: initial;
}

View file

@ -249,10 +249,10 @@ class SuggestionDetails {
}
removeClass(this.el, 'no-docs');
if (typeof item.suggestion.documentation === 'string') {
removeClass(this.docs, 'marked-docs');
removeClass(this.docs, 'markdown-docs');
this.docs.textContent = item.suggestion.documentation;
} else {
addClass(this.docs, 'marked-docs');
addClass(this.docs, 'markdown-docs');
this.docs.innerHTML = this.markdownRenderer.render(item.suggestion.documentation).innerHTML;
}