hledger/doc/pandoc-drop-man-blocks.hs

13 lines
290 B
Haskell
Raw Normal View History

2016-04-06 01:46:44 +03:00
#!/usr/bin/env stack
{- stack runghc --verbosity info --package pandoc-types-1.16.1 -}
import Text.Pandoc.Builder
import Text.Pandoc.JSON
main :: IO ()
main = toJSONFilter dropManBlocks
2016-04-06 01:46:44 +03:00
dropManBlocks :: Block -> Block
dropManBlocks (Div ("",["man"],[]) _) = Plain []
dropManBlocks x = x