remy / inliner

Node utility to inline images, CSS and JavaScript for a web page - useful for mobile sites
MIT License
1.1k stars 165 forks source link

CSS url's that use anchor's come out mangled by inliner #185

Open matthewmoto opened 6 years ago

matthewmoto commented 6 years ago

One of my projects uses anchor URL's for use with PrinceXML (an HTML -> PDF conversion tool) to have a table of contents with page numbers.

This is accomplished with anchor references in CSS URL's. However, inliner mangles these references trying to inline the target.

I've included a gist that shows the issue here: https://gist.github.com/matthewmoto/aaea3b3f8da9e22d5decb45e5a18a4ab