commit a02788e6405df7b3fbf5c5e9a0de428e20acd737
parent cb263e325eed9beb847c19dfaf6a657307dbe0a1
Author: krasjet
Date: 2020-05-24 16:18Z

0.6.0 release

Diffstat:
MCHANGELOG.md | 5+++++
MREADME.md | 4++--
Mpandoc-utils.cabal | 2+-
3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -1,5 +1,10 @@ # Releases +## pandoc-utils 0.6.0 (2020-5-24) + +- Rename `applyFilters` to `seqFilters` to avoid name conflicts with Pandoc +- `applyFilters` is now deprecated + ## pandoc-utils 0.5.1 (2020-5-24) - Fix the link to Hakyll in package description. diff --git a/README.md b/README.md @@ -80,7 +80,7 @@ delinkPandoc = convertFilter delink This function is slightly more powerful than `walk` and `walkM` in that it is also able to handle filter functions of type `a -> [a]` and `a -> m [a]`. -For applying multiple filters, there is also a function called `applyFilters`, +For applying multiple filters, there is also a function called `seqFilters`, which takes a list of wrapped filters and apply it to a `Pandoc` document (or subnode) sequentially, from left to right. ```haskell @@ -95,7 +95,7 @@ mdToHtml' -> Either PandocError Text -- ^ Html string or error mdToHtml' md = runPure $ do doc <- readMarkdown def md - let doc' = applyFilters myFilters doc + let doc' = seqFilters myFilters doc writeHtml5String def doc' ``` diff --git a/pandoc-utils.cabal b/pandoc-utils.cabal @@ -2,7 +2,7 @@ build-type: Simple cabal-version: 2.0 name: pandoc-utils -version: 0.5.1 +version: 0.6.0 synopsis: Utility functions to work with Pandoc in Haskell applications. description: