-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
Allow online (https) CSS in markdown-pdf.styles
#67
Comments
"markdown-pdf.styles": [
"https://unpkg.com/mdss"
] The CSS is applied correctly in JPG and PNG, but there is a problem with the PDF. |
A missing semicolon in the '@media print' rule of the linked stylesheet at https://unpkg.com/mdss is causing problems with PDF-export (paragraph text not showing). At the first instance of the '@media print' rule, a semicolon is missing after the 'body{color:#000}' attribute. Adding a semicolon fixes the problem of paragraph text not showing. See also issue #240 . |
This issue is for the mdss package (that I maintain), not this one. I don't think the problem is the missing semicolon (the CSS is syntaxically OK), but the lazy loading of fonts in the print preview of Chromium browsers. It is a known issue that fonts only show up on the second rendering in the print preview dialog if they were loaded from a CDN. |
Ah, okay my bad. I'm still pretty inexperienced. Putting a semicolon at the mentioned place did make some black paragraph text show up so i thought i had found something there. :-) Should i delete my previous comment (and subsequently this one), or is it worth leaving it up for whatever reason? |
@Haenkos No problem 🙂 Your problem was probably solved by reloading the print preview rather than the added semicolon. As for the comment I think it can stay. 🙂 |
Allow online CSS in yzane#67
It would be nice to be able to include online CSS without the need to have a local copy.
Sadly this is not working.
The text was updated successfully, but these errors were encountered: