Ipynb reader: handle application/pdf output as image.

Closes #6430.
This commit is contained in:
John MacFarlane
2020-06-09 09:47:26 -07:00
parent 8d07940828
commit de4fb05dcc
+1 -1
View File
@@ -157,7 +157,7 @@ handleData metadata (MimeBundle mb) =
dataBlock :: PandocMonad m => (MimeType, MimeData) -> m B.Blocks
dataBlock (mt, d)
| "image/" `T.isPrefixOf` mt
| "image/" `T.isPrefixOf` mt || mt == "application/pdf"
= do
-- normally metadata maps from mime types to key-value map;
-- but not always...