pandoc/src/Text
John MacFarlane ea5cd35004 Text.Pandoc: Added jsonFilter for easy construction of scripts.
Here's an example of its use:

-- removelinks.hs - removes links from document
import Text.Pandoc

main = interact $ jsonFilter $ bottomUp removeLink

removeLink :: Inline -> Inline
removeLink (Link xs _) = Emph xs
removeLink x = x
2011-01-22 17:53:16 -08:00
..
Pandoc Markdown reader: slight speedup by moving whitespace parser. 2011-01-22 16:04:32 -08:00
Pandoc.hs Text.Pandoc: Added jsonFilter for easy construction of scripts. 2011-01-22 17:53:16 -08:00