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

CSS images do not have "url()" when using --self-contained option #2489

Closed
prigio opened this issue Oct 28, 2015 · 0 comments
Closed

CSS images do not have "url()" when using --self-contained option #2489

prigio opened this issue Oct 28, 2015 · 0 comments

Comments

@prigio
Copy link

prigio commented Oct 28, 2015

When using the --self-contained option to convert markdown->html, data-uri images within CSS miss the enclosing "url()" and are therefore not displayed.

Pandoc version: 1.15.1 on OsX.

Sample files:

  • index.md

    <link rel="stylesheet" href="test.css" type="text/css" />
    
    This is some content. 
    
    The body element has a background image.
    
  • test.css

    body {
    background: white url('http://www.git-scm.com/images/[email protected]') no-repeat left 80px;
    }
    

Command lines used to produce the comparison files:

pandoc -f markdown -t html --standalone -o index.html index.md
pandoc -f markdown -t html --standalone --self-contained -o index_sc.html index.md

comparison

@jgm jgm closed this as completed in fb1843e Oct 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant