mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 00:59:03 +01:00
Small cleanup follow up on #236145
- Don't send content as json - Reuse existing load helper
This commit is contained in:
@@ -99,7 +99,7 @@ export class MdDocumentRenderer {
|
||||
data-settings="${escapeAttribute(JSON.stringify(initialData))}"
|
||||
data-strings="${escapeAttribute(JSON.stringify(previewStrings))}"
|
||||
data-state="${escapeAttribute(JSON.stringify(state || {}))}"
|
||||
data-md-content="${escapeAttribute(JSON.stringify(encodeURIComponent(body.html)))}">
|
||||
data-initial-md-content="${escapeAttribute(body.html)}">
|
||||
<script src="${this._extensionResourcePath(resourceProvider, 'pre.js')}" nonce="${nonce}"></script>
|
||||
${this._getStyles(resourceProvider, sourceUri, config, imageInfo)}
|
||||
<base href="${resourceProvider.asWebviewUri(markdownDocument.uri)}">
|
||||
|
||||
Reference in New Issue
Block a user