Skip to content

Instantly share code, notes, and snippets.

@mpickering
Created December 8, 2014 17:43
Show Gist options
  • Save mpickering/0fce7cf3124fee8b38a1 to your computer and use it in GitHub Desktop.
Save mpickering/0fce7cf3124fee8b38a1 to your computer and use it in GitHub Desktop.
Pandoc filter to remove footnotes
module Main where
import Text.Pandoc.JSON
main = toJSONFilter removeFootnote
removeFootnote :: Inline -> [Inline]
removeFootnote (Note _) = []
removeFootnote e = [e]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment