diff options
| author | Albert Krewinkel <albert@zeitkraut.de> | 2022-09-30 10:51:22 +0200 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2022-09-30 08:33:40 -0700 |
| commit | 0e947c747369dce55f5c5c69532835776f7903f9 (patch) | |
| tree | 5868ba02912c23e4e9c9870ac8f12d76a320d4f5 /src | |
| parent | 084e246126d8177e29e8b8e4bc84d340ac847e02 (diff) | |
[API Change] Filter: export function `applyJSONFilter`
Diffstat (limited to 'src')
| -rw-r--r-- | src/Text/Pandoc/Filter.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Filter.hs b/src/Text/Pandoc/Filter.hs index 7185fd1e0..593aa7cba 100644 --- a/src/Text/Pandoc/Filter.hs +++ b/src/Text/Pandoc/Filter.hs @@ -16,6 +16,7 @@ module Text.Pandoc.Filter ( Filter (..) , Environment (..) , applyFilters + , applyJSONFilter ) where import System.CPUTime (getCPUTime) @@ -106,3 +107,11 @@ expandFilterPath CiteprocFilter = return CiteprocFilter filterPath :: PandocMonad m => FilePath -> m FilePath filterPath fp = fromMaybe fp <$> findFileWithDataFallback "filters" fp + +applyJSONFilter :: MonadIO m + => Environment + -> [String] + -> FilePath + -> Pandoc + -> m Pandoc +applyJSONFilter = JSONFilter.apply |
