Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

markdown.styles doesn't support HTTPS URLs #148677

Closed
stankovictab opened this issue May 4, 2022 · 4 comments
Closed

markdown.styles doesn't support HTTPS URLs #148677

stankovictab opened this issue May 4, 2022 · 4 comments
Assignees
Labels
*as-designed Described behavior is as designed markdown Markdown support issues

Comments

@stankovictab
Copy link

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.66.2
  • OS Version: Kubuntu 21.10

Steps to Reproduce:

  1. Edit markdown.styles with a URL starting with HTTPS, to a .css file, for example, I have a public .dotfiles git repo in which I have a .css file for styling markdown previews - getting the URL of the raw file and pasting it in doesn't work, I get the "Could not load markdown.styles..." error.

image

@mjbvz
Copy link
Contributor

mjbvz commented May 4, 2022

Have you tried hosting somewhere else? I don't think raw.github can be used for stylesheets like this

@mjbvz mjbvz added the info-needed Issue requires more information from poster label May 4, 2022
@stankovictab
Copy link
Author

I've tried PasteBin and GitHub Gist, none of them seem to work.
Do you have any recommendations?

image

@mjbvz
Copy link
Contributor

mjbvz commented May 4, 2022

If you open the dev tools to investigate further, you should see:

used to apply style from 'https://XXX' because its MIME type ('text/plain') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

The sites all return their content as plaintext, likely because they don't want to be used as a generic CDN for stylesheets and script. So I don't think this has anything to do with https, it's just how the sites you are trying to use to host the contents are configured

Closing this as by-design

@mjbvz mjbvz closed this as completed May 4, 2022
@mjbvz mjbvz added markdown Markdown support issues *as-designed Described behavior is as designed and removed info-needed Issue requires more information from poster labels May 4, 2022
@stankovictab
Copy link
Author

Would be nice if this was mentioned somewhere in the docs, because as it stands this feature is very limiting.
At the very least mention an example of a hosting service that would return the right content type, we shouldn't need to guess.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*as-designed Described behavior is as designed markdown Markdown support issues
Projects
None yet
Development

No branches or pull requests

2 participants