mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
Revert "Refactor"
This reverts commit 58fe37a91fc099f0205cda6e7423c303d810b243.
This commit is contained in:
parent
fda04d1d5c
commit
a7a15df4ca
|
@ -82,10 +82,10 @@ export class MarkdownRenderer extends Disposable {
|
|||
const disposeables = new DisposableStore();
|
||||
|
||||
let element: HTMLElement;
|
||||
if (markdown) {
|
||||
element = renderMarkdown(markdown, this.getOptions(disposeables));
|
||||
} else {
|
||||
if (!markdown) {
|
||||
element = document.createElement('span');
|
||||
} else {
|
||||
element = renderMarkdown(markdown, this.getOptions(disposeables));
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue