pandoc-3.2: Conversion between markup formats
Copyright© 2006-2024 John MacFarlane
LicenseGPL-2.0-or-later
MaintainerJohn MacFarlane <jgm@berkeley@edu>
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Pandoc.Transforms

Description

Transformation of a Pandoc document post-parsing

Synopsis

Documentation

type Transform = Pandoc -> Pandoc Source #

Transformation of a Pandoc document post-parsing

applyTransforms :: Monad m => [Transform] -> Pandoc -> m Pandoc Source #

Apply a list of transforms to a document, in order.

adjustLinksAndIds Source #

Arguments

:: 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.

filterIpynbOutput :: Maybe Format -> Pandoc -> Pandoc Source #

Process ipynb output cells. If mode is Nothing, remove all output. If mode is Just format, select best output for the format. If format is not ipynb, strip out ANSI escape sequences from CodeBlocks (see #5633).

headerShift :: Int -> Pandoc -> Pandoc Source #

Shift header levels up or down.