| Copyright | (c) 2023 Amy de Buitléir |
|---|---|
| License | GPL-3.0-only |
| Maintainer | [email protected] |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Text.Pandoc.Query
Description
See https://github.com/mhwombat/pandoc-maths-web for information on how to use this filter.
Synopsis
- transform :: [Pandoc] -> Pandoc -> IO Pandoc
- data Query = Query Expression Formatter
- data Formatter = ParseFromMarkdown Text
- data Expression
- satisfies :: Pandoc -> Expression -> Bool
Documentation
transform :: [Pandoc] -> Pandoc -> IO Pandoc Source #
Replaces any executable queries in a Pandoc document with the formatted result of the query.
Represents an executable query and specifies how to format the results.
Constructors
| Query Expression Formatter |
data Expression Source #
Constructors
| MetaValueIs Text Text | |
| MetaValueIncludes Text Text | |
| All | |
| And Expression Expression | |
| Or Expression Expression | |
| Not Expression |
Instances
| Read Expression Source # | |
Defined in Text.Pandoc.Query Methods readsPrec :: Int -> ReadS Expression # readList :: ReadS [Expression] # readPrec :: ReadPrec Expression # readListPrec :: ReadPrec [Expression] # | |
| Show Expression Source # | |
Defined in Text.Pandoc.Query Methods showsPrec :: Int -> Expression -> ShowS # show :: Expression -> String # showList :: [Expression] -> ShowS # | |