In order to support somewhat more complex filtering cases, while
working on a project we encountered the need for closures rather
than simply filter functions. This change is the simplest possible
which permits the use of 'static + Fn(String) -> String closures
to increase flexibility.
The internal use of Rc means that we swap from Send + Sync on
the Pandoc struct to !Send + !Sync -- I can swap that to Arc if the
change is unacceptable, otherwise this is also a breaking change.
In order to support somewhat more complex filtering cases, while working on a project we encountered the need for closures rather than simply filter functions. This change is the simplest possible which permits the use of
'static + Fn(String) -> String
closures to increase flexibility.The internal use of
Rc
means that we swap fromSend + Sync
on thePandoc
struct to!Send + !Sync
-- I can swap that toArc
if the change is unacceptable, otherwise this is also a breaking change.