aboutsummaryrefslogtreecommitdiff
path: root/man/removeLinks.hs
blob: 52414ebd0b4049bf61a352245797627f1eadddfe (plain)
1
2
3
4
5
6
7
8
9
import Text.Pandoc.JSON

main :: IO ()
main = toJSONFilter removeLinks

removeLinks :: Inline -> [Inline]
removeLinks (Link _ l _) = l
removeLinks x = [x]