Ipynb reader: handle application/pdf output as image.
Closes #6430.
commitde4fb05dcc597171a5cbaac44664110c5fc0b44c
authorJohn MacFarlane <jgm@berkeley.edu>
dateTue 9 Jun 2020, 09:47 (6 years ago)
parent8d07940
src/Text/Pandoc/Readers/Ipynb.hs+1−1
@@ -157,7 +157,7 @@ handleData metadata (MimeBundle mb) =
157157
158158 dataBlock :: PandocMonad m => (MimeType, MimeData) -> m B.Blocks
159159 dataBlock (mt, d)
160− | "image/" `T.isPrefixOf` mt
160+ | "image/" `T.isPrefixOf` mt || mt == "application/pdf"
161161 = do
162162 -- normally metadata maps from mime types to key-value map;
163163 -- but not always...