diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2014-04-05 15:50:46 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2014-04-05 15:50:46 -0700 |
commit | f2deb9d86d864c79c5ca18205b4ca565b7199413 (patch) | |
tree | 1f42253964e7f5a9c7e47f74524f49f0bc60f58a /src/Text/Pandoc | |
parent | e35ebd3239ba026871222ba7d5687f994e5212d6 (diff) | |
download | pandoc-f2deb9d86d864c79c5ca18205b4ca565b7199413.tar.gz |
Org reader: Added type signature.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Readers/Org.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/Org.hs b/src/Text/Pandoc/Readers/Org.hs index 8b1b4fa23..5ad2531ac 100644 --- a/src/Text/Pandoc/Readers/Org.hs +++ b/src/Text/Pandoc/Readers/Org.hs @@ -613,6 +613,7 @@ endsOnThisLine input c doOnOtherLines = do else endsOnThisLine rest c doOnOtherLines _ -> mzero +isImage :: String -> Bool isImage filename = any (\x -> ('.':x) `isSuffixOf` filename) imageExtensions && any (\x -> (x++":") `isPrefixOf` filename) protocols || |