Skip to content

Commit 3fa22b2

Browse files
committed
Use Schemas constants
1 parent d6dab59 commit 3fa22b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/base/browser/markdownRenderer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ export function renderMarkdown(markdown: IMarkdownString, options: MarkdownRende
173173
renderer
174174
};
175175

176-
const allowedSchemes = ['http', 'https', 'mailto', 'data', Schemas.file, Schemas.vscodeRemote];
176+
const allowedSchemes = [Schemas.http, Schemas.https, Schemas.mailto, Schemas.data, Schemas.file, Schemas.vscodeRemote];
177177
if (markdown.isTrusted) {
178-
allowedSchemes.push('command');
178+
allowedSchemes.push(Schemas.command);
179179
}
180180

181181
const renderedMarkdown = marked.parse(markdown.value, markedOptions);

0 commit comments

Comments
 (0)