Skip to content

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

Closed
prigio opened this Issue · 0 comments

1 participant

@prigio

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/logo@2x.png') 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 in fb1843e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.