Copyright | Copyright (C) 2006-2021 John MacFarlane |
---|---|
License | GNU GPL, version 2 or above |
Maintainer | John MacFarlane <jgm@berkeley@edu> |
Stability | alpha |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Programmatically modifications of pandoc documents.
Synopsis
- data Filter
- applyFilters :: (PandocMonad m, MonadIO m) => ReaderOptions -> [Filter] -> [String] -> Pandoc -> m Pandoc
Documentation
Type of filter and path to filter file.
Instances
Show Filter Source # | |
Generic Filter Source # | |
FromYAML Filter Source # | |
ToJSON Filter Source # | |
Defined in Text.Pandoc.Filter | |
FromJSON Filter Source # | |
type Rep Filter Source # | |
Defined in Text.Pandoc.Filter type Rep Filter = D1 ('MetaData "Filter" "Text.Pandoc.Filter" "pandoc-2.15-GMYMsJ56IjjI1siSqfjpiA" 'False) (C1 ('MetaCons "LuaFilter" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)) :+: (C1 ('MetaCons "JSONFilter" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)) :+: C1 ('MetaCons "CiteprocFilter" 'PrefixI 'False) (U1 :: Type -> Type))) |
applyFilters :: (PandocMonad m, MonadIO m) => ReaderOptions -> [Filter] -> [String] -> Pandoc -> m Pandoc Source #
Modify the given document using a filter.