hledger/doc/pandoc-drop-web-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 dropWebBlocks
2016-04-06 01:46:44 +03:00
dropWebBlocks :: Block -> Block
dropWebBlocks (Div ("",["web"],[]) _) = Plain []
dropWebBlocks x = x