1 2 3 4 5 6 7 8
#!/usr/bin/env runhaskell import Text.Pandoc.JSON main = toJSONFilter delink delink :: Inline -> [Inline] delink (Link txt _) = txt delink x = [x]