Created
August 24, 2015 17:17
-
-
Save baig/c3bbc454c707f8ac31e8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env runhaskell | |
import Text.Pandoc.JSON | |
import Text.Pandoc.Builder | |
main :: IO () | |
main = toJSONFilter hideSlide | |
hideSlide :: Block -> Block | |
hideSlide (CodeBlock (_,(attr:_),_) str) | |
| attr == "hide" | |
= HorizontalRule | |
hideSlide b = b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment