hledger/tools/pandocRemoveNotes.hs

13 lines
214 B
Haskell
Raw Normal View History

#!/usr/bin/env stack
-- stack runghc --package pandoc-types
import Text.Pandoc.JSON
main :: IO ()
main = toJSONFilter removeNotes
removeNotes :: Inline -> Inline
removeNotes (Note _) = Str ""
removeNotes x = x