SelfContained: use base64 for css links with media attribute.
This fixes `--self-contained` with s5. Closes #4026.
commit52e372b71d8ac5168025ad7ec2e9623c74c2dd93
authorJohn MacFarlane <jgm@berkeley.edu>
dateWed 1 Nov 2017, 17:42 (9 years ago)
parented3d466
src/Text/Pandoc/SelfContained.hs+1
@@ -124,6 +124,7 @@ convertTags (t@(TagOpen "link" as):ts) =
124124 rest
125125 Right (mime, bs)
126126 | "text/css" `isPrefixOf` mime
127+ && null (fromAttrib "media" t)
127128 && not ("</" `B.isInfixOf` bs) -> do
128129 rest <- convertTags $
129130 dropWhile (==TagClose "link") ts