Skip to content

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

@Rudokhvist

Description

@Rudokhvist

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

  • Download archive with sample files:
    MRE.zip
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions