Copyright | © 2006-2024 John MacFarlane |
---|---|
License | GPL-2.0-or-later |
Maintainer | John MacFarlane <jgm@berkeley@edu> |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Transformation of a Pandoc document post-parsing
Synopsis
- type Transform = Pandoc -> Pandoc
- applyTransforms :: Monad m => [Transform] -> Pandoc -> m Pandoc
- adjustLinksAndIds :: Extensions -> Text -> [Text] -> Transform
- eastAsianLineBreakFilter :: Pandoc -> Pandoc
- filterIpynbOutput :: Maybe Format -> Pandoc -> Pandoc
- headerShift :: Int -> Pandoc -> Pandoc
Documentation
applyTransforms :: Monad m => [Transform] -> Pandoc -> m Pandoc Source #
Apply a list of transforms to a document, in order.
:: Extensions | defines how IDs are generated |
-> Text | thisfile |
-> [Text] | allfiles |
-> Transform |
Prefixes identifiers with a string derived from the filepath of
thisfile
; fixes links to targets in allfiles
accordingly.
eastAsianLineBreakFilter :: Pandoc -> Pandoc Source #
Remove soft breaks between East Asian characters.