Closed mjpieters closed 4 years ago
My assertion about the images regexp was incorrect (it's not applicable in this case). The CSS is simply not processed for inlining.
Instead, CSS would have to be processed through Inline.css()
if inlining is enabled.
When the stylesheet contains something like:
things look great when serving, but not-so-great when exporting to HTML or PDF. That's because the regular expression for CSS image URLs only matches
url(file://...)
references, not relative references:Can this be updated to also pick up paths that do not start with a scheme or slash? Anything that doesn't start with
[a-z]+:
should be seen as a relative path, but perhaps limiting this tohttp:
,https:
anddata:
makes for an easier negative-lookbehind pattern to write.