提交 931992ae 编写于 作者: M Matt Bierner

Set charset on contributed markdown scripts

上级 5a3982b6
......@@ -196,7 +196,7 @@ export class MDDocumentContentProvider implements vscode.TextDocumentContentProv
private getScripts(nonce: string): string {
const scripts = [this.getMediaPath('main.js')].concat(this.extraScripts.map(resource => resource.toString()));
return scripts
.map(source => `<script async src="${source}" nonce="${nonce}"></script>`)
.map(source => `<script async src="${source}" nonce="${nonce}" charset="UTF-8"></script>`)
.join('\n');
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册