mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 01:36:45 +00:00
org reader: recognize {webp,jxl} files as images
This commit is contained in:
@@ -30,7 +30,7 @@ isImageFilename fp = hasImageExtension && (isValid (T.unpack fp) || isKnownProto
|
||||
`elem` imageExtensions
|
||||
isKnownProtocolUri = any (\x -> (x <> "://") `T.isPrefixOf` fp) protocols
|
||||
|
||||
imageExtensions = [ ".jpeg", ".jpg", ".png", ".gif", ".svg" ]
|
||||
imageExtensions = [ ".jpeg", ".jpg", ".png", ".gif", ".svg", ".webp", ".jxl" ]
|
||||
protocols = [ "file", "http", "https" ]
|
||||
|
||||
-- | Cleanup and canonicalize a string describing a link. Return @Nothing@ if
|
||||
|
||||
Reference in New Issue
Block a user