Skip to content

Extending the Markdown Preview with additional scripts while complying with CSP #1203

Discussion options

You must be logged in to vote

If the original markdown preview you are talking about is the built-in markdown viewer of VS Code, you can make the viewer permissive, or less secure. See:

Disables additional security in the preview window. This allows script execution and also allows content to be loaded over http.


I cannot figure out how to retrieve it.

There is no way to obtain the nonce of the viewer.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by isidorn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants