Guest User

Untitled

a guest
May 24th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #!/usr/bin/env runhaskell
  2. -- keep-math.hs
  3. -- (c) 2018, Tim Herbstrith
  4. import Text.Pandoc.JSON
  5.  
  6. main :: IO ()
  7. main = toJSONFilter ignoreMath
  8.  
  9. ignoreMath :: Inline -> Inline
  10. ignoreMath (Math InlineMath y) = Str $ "$" ++ y ++ "$"
  11. ignoreMath (Math DisplayMath y) = Str $ "$$" ++ y ++ "$$"
  12. ignoreMath x = x
Add Comment
Please, Sign In to add comment