-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Custom markdown styles not working? #8287
Comments
It does not seem to work to me neither |
I improved the documentation in the user settings. You can use URLs like |
Works for me when using a local file path or absolute path, but not when using a URL like https://gist.githubusercontent.com/bpasero/5574e2cb0cd47aaf9870f956adcc7ff5/raw/bf2a775e5c71eda058b534ae37fa03b930026a60/gistfile1.css or https://raw.githubusercontent.com/sindresorhus/github-markdown-css/gh-pages/github-markdown.css |
What I'm seeing is that the stylesheet is correctly added to the html page that is being displayed. When I open the dev tools inside the webview, the stylesheets don't seem to have any content. However, this only seems to be true for those gist urls. When setting |
The issue is that GitHub responses with |
Ah ok, sorry about that... |
@kieferrm @bpasero @sandy081 I figured out a way. If you paste your gist url(i.e https://gist.githubusercontent.com/wghglory/9b6e502a0c81d135e83fce87be83a18c/raw/7a9bdd06e9f2fe4a53d84900d5ac77912f939873/github-markdown.css) here: https://rawgit.com, it will generate a new url for you. You can paste that into your settings.json.
|
In macOS, the |
@Molunerfinn use |
@wghglory still not working.... |
@Molunerfinn I use the following in my settings: "markdown.styles": [
"/Users/kieferrm/Development/markdown.css"
] |
Refs: #7945
I tried to configure a custom CSS with 3 different approaches:
I do not seem to get it to work:
The text was updated successfully, but these errors were encountered: