Skip to content

Commit

Permalink
remove null blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
dag committed Dec 7, 2011
1 parent 552ae3b commit ee431bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions transform.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ transformBlock HorizontalRule

transformBlock x = x

removeNull (Pandoc meta blocks)
= Pandoc meta $ filter (/= Null) blocks

main = interact $ writeNative defaultWriterOptions
. removeNull
. bottomUp transformInline
. bottomUp transformBlock
. readNative

0 comments on commit ee431bb

Please sign in to comment.