mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-08 07:09:28 +03:00
13 lines
291 B
Haskell
13 lines
291 B
Haskell
|
#!/usr/bin/env stack
|
||
|
-- stack runghc --package pandoc-types
|
||
|
|
||
|
import Text.Pandoc.Builder
|
||
|
import Text.Pandoc.JSON
|
||
|
|
||
|
main :: IO ()
|
||
|
main = toJSONFilter removeWebonlyBlocks
|
||
|
|
||
|
removeWebonlyBlocks :: Block -> Block
|
||
|
removeWebonlyBlocks (Div ("",["webonly"],[]) _) = Plain []
|
||
|
removeWebonlyBlocks x = x
|