Copyright | (c) 2012 Brent Yorgey |
---|---|
License | GPL (see LICENSE) |
Maintainer | Brent Yorgey <byorgey@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
Uploading images embedded in posts to the server.
- uploadAllImages :: BlogLiterately -> Pandoc -> IO Pandoc
- uploadIt :: String -> FilePath -> BlogLiterately -> IO (Maybe Value)
- mkMediaObject :: FilePath -> IO (Maybe Value)
Documentation
uploadAllImages :: BlogLiterately -> Pandoc -> IO Pandoc Source #
Transform a document by uploading any "local" images to the
server, and replacing their filenames with the URLs returned by
the server. Only upload any given image once (determined by file
name), even across runs: uploaded images and their associated URL
on the server is tracked in a special dotfile,
.BlogLiterately-uploaded-images
.