hledger/tools/pandocRemoveLinks.hs
2015-10-26 06:56:33 -07:00

13 lines
215 B
Haskell
Executable File

#!/usr/bin/env stack
-- stack runghc --package pandoc-types
import Text.Pandoc.JSON
main :: IO ()
main = toJSONFilter removeLinks
removeLinks :: Inline -> [Inline]
removeLinks (Link l _) = l
removeLinks x = [x]