about summary refs log tree commit diff stats
path: root/scripts/delink.hs
blob: 735e82976ee84cf3264c34a9e7bd1e912bc12b4b (plain)
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]