Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Utility functions for working with builders, and constructed pandoc ASTs
Documentation
mapBuilder :: (a -> b) -> Builder a -> Builder b Source #
Map every element written in a Builder
.
This is useful if you have laid out bespoke elements, such as
mapBuilder boldStrings $ do div "lorem ipsum " str "dolor sit amet" boldStrings s@(Str _) = Strong s boldStrings a = a
It's also useful for creating custom pandoc builders.
See tableWithColspec
.