aboutsummaryrefslogtreecommitdiff
path: root/Text/Pandoc/Definition.hs
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2008-08-04 03:15:34 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2008-08-04 03:15:34 +0000
commit1bfe1b84a8692c5e2ea8a036208f61612b48e9fb (patch)
treef670ecfa879f49dad220ab79471c72a896904048 /Text/Pandoc/Definition.hs
parent4719c7841718a131d659cb3037da33bebdf1cf31 (diff)
downloadpandoc-1bfe1b84a8692c5e2ea8a036208f61612b48e9fb.tar.gz
Added support for Cite to Markdown reader, and conditional support for citeproc module.
+ The citeproc cabal configuration option sets the _CITEPROC macro, which conditionally includes code for handling citations. + Added Text.Pandoc.Biblio module. + Made highlighting option default to False. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1376 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'Text/Pandoc/Definition.hs')
-rw-r--r--Text/Pandoc/Definition.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Text/Pandoc/Definition.hs b/Text/Pandoc/Definition.hs
index f302f0dbd..7fc04f698 100644
--- a/Text/Pandoc/Definition.hs
+++ b/Text/Pandoc/Definition.hs
@@ -125,8 +125,10 @@ data Inline
| Note [Block] -- ^ Footnote or endnote
deriving (Show, Eq, Read, Typeable, Data)
+-- | Applies a transformation to matching elements in a Pandoc document.
processPandoc :: Typeable a => (a -> a) -> Pandoc -> Pandoc
processPandoc f = everywhere (mkT f)
+-- | Runs a query on matching elements in a Pandoc document.
queryPandoc :: Typeable a => (a -> [b]) -> Pandoc -> [b]
queryPandoc f = everything (++) ([] `mkQ` f)