Created
February 20, 2015 16:07
-
-
Save terryburton/ac7c5c662443f3553dc4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env runhaskell | |
import Text.Pandoc.JSON | |
import System.FilePath | |
main = toJSONFilter rewritepngtoeps | |
rewritepngtoeps :: Inline -> [Inline] | |
rewritepngtoeps ( Image txt (url,title) ) = [ ( Image txt (rewritefile url,title) ) ] | |
rewritepngtoeps x = [x] | |
rewritefile :: String -> String | |
rewritefile filename = replaceExtension filename ".eps" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment