aboutsummaryrefslogtreecommitdiff
path: root/man/removeLinks.hs
diff options
context:
space:
mode:
Diffstat (limited to 'man/removeLinks.hs')
-rw-r--r--man/removeLinks.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/man/removeLinks.hs b/man/removeLinks.hs
new file mode 100644
index 000000000..d4508e7a3
--- /dev/null
+++ b/man/removeLinks.hs
@@ -0,0 +1,9 @@
+import Text.Pandoc.JSON
+
+main :: IO ()
+main = toJSONFilter removeLinks
+
+removeLinks :: Inline -> [Inline]
+removeLinks (Link l _) = l
+removeLinks x = [x]
+