You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating html from md with --embed-resources --standalone, CSS styles from --css are not included correctly when loading from remote url, works fine with local file
#10261
Closed
Rudokhvist opened this issue
Oct 5, 2024
· 5 comments
Explain the problem.
I'm trying to generate --standalone --embed-resources .html from .md with custom style specified with --css. It works fine when I use css from a file on local filesystem, but don't work when I specify a https url to the very same file.
make shell script example.sh executable and run it. It will generate two html files, with css loaded from remote url (result1.html) and with css from local file (downloaded fro the same remote url) (result2.html).
You can now compare those files, and see that result1.html don't show any of the embedded styles.
Pandoc version?
I'm using latest stable version of pandoc, 3.4, on Windows 10. I also tried latest nightly build with same result.
Misc
This issue may be connected to #7635, #7367 and #3423, but only affects remote urls and results are more dramatic, causing styles to not affect resulting document.
The text was updated successfully, but these errors were encountered:
So with the remote --css, we get a <link href="data:text/plain...> with the contents of the CSS file encoded, while with local --css, we get a proper <style> tag.
Explain the problem.
I'm trying to generate --standalone --embed-resources .html from .md with custom style specified with --css. It works fine when I use css from a file on local filesystem, but don't work when I specify a https url to the very same file.
Steps to reproduce
MRE.zip
Pandoc version?
I'm using latest stable version of pandoc, 3.4, on Windows 10. I also tried latest nightly build with same result.
Misc
This issue may be connected to #7635, #7367 and #3423, but only affects remote urls and results are more dramatic, causing styles to not affect resulting document.
The text was updated successfully, but these errors were encountered: