diff options
author | John MacFarlane <jgm@berkeley.edu> | 2011-01-22 17:52:25 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2011-01-22 17:53:16 -0800 |
commit | ea5cd350042f31a66ee0d59e885d34598f9cc5a1 (patch) | |
tree | ee3c7b4a1ef6f8a19f56070c5c88e6fef019ef07 /src/Text/Pandoc/Shared.hs | |
parent | a74010a051e4cd3fee7ebfb4a632d52bb32de61d (diff) | |
download | pandoc-ea5cd350042f31a66ee0d59e885d34598f9cc5a1.tar.gz |
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
Diffstat (limited to 'src/Text/Pandoc/Shared.hs')
0 files changed, 0 insertions, 0 deletions