Set charset on contributed markdown scripts

pull/33317/head
Matt Bierner 2017-08-28 18:00:08 -07:00
parent 5a3982b6d1
commit 931992aea8
1 changed files with 1 additions and 1 deletions

View File

@ -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');
}