diff options
| author | John MacFarlane <[email protected]> | 2025-07-23 08:51:49 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-07-23 08:51:49 -0700 |
| commit | b84ab366e68e0c31a270e4b508636d6e002d6ff1 (patch) | |
| tree | 1afd6a216e704fb3e50a8f98a4522ef98bea9ac8 | |
| parent | ad1a7b69c7e00704da5e7a400619afbf3ab76304 (diff) | |
Fix incomplete pattern matches from new ImageType constructor.
| -rw-r--r-- | src/Text/Pandoc/Writers/Docx/OpenXML.hs | 1 | ||||
| -rw-r--r-- | src/Text/Pandoc/Writers/Powerpoint/Output.hs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/Docx/OpenXML.hs b/src/Text/Pandoc/Writers/Docx/OpenXML.hs index a6f6ad4d1..0b76153f4 100644 --- a/src/Text/Pandoc/Writers/Docx/OpenXML.hs +++ b/src/Text/Pandoc/Writers/Docx/OpenXML.hs @@ -1041,6 +1041,7 @@ inlineToOpenXML' opts (Image attr@(imgident, _, _) alt (src, title)) = do Just Emf -> ".emf" Just Tiff -> ".tiff" Just Webp -> ".webp" + Just Avif -> ".avif" Nothing -> "" imgpath = "media/" <> ident <> imgext mbMimeType = mt <|> getMimeType (T.unpack imgpath) diff --git a/src/Text/Pandoc/Writers/Powerpoint/Output.hs b/src/Text/Pandoc/Writers/Powerpoint/Output.hs index 2e51e6497..01a47141c 100644 --- a/src/Text/Pandoc/Writers/Powerpoint/Output.hs +++ b/src/Text/Pandoc/Writers/Powerpoint/Output.hs @@ -915,6 +915,7 @@ registerMedia fp caption = do Just Emf -> Just ".emf" Just Tiff -> Just ".tiff" Just Webp -> Just ".webp" + Just Avif -> Just ".avif" Nothing -> Nothing let newGlobalId = fromMaybe (maxGlobalId + 1) (M.lookup fp globalIds) |
