Skip to content

Commit 931992a

Browse files
committed
Set charset on contributed markdown scripts
1 parent 5a3982b commit 931992a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/markdown/src/previewContentProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export class MDDocumentContentProvider implements vscode.TextDocumentContentProv
196196
private getScripts(nonce: string): string {
197197
const scripts = [this.getMediaPath('main.js')].concat(this.extraScripts.map(resource => resource.toString()));
198198
return scripts
199-
.map(source => `<script async src="${source}" nonce="${nonce}"></script>`)
199+
.map(source => `<script async src="${source}" nonce="${nonce}" charset="UTF-8"></script>`)
200200
.join('\n');
201201
}
202202

0 commit comments

Comments
 (0)