Copyright | (c) 2023 Amy de Buitléir |
---|---|
License | GPL-3.0-only |
Maintainer | amy@nualeargais.ie |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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.
data Expression Source #
MetaValueIs Text Text | |
MetaValueIncludes Text Text | |
All | |
And Expression Expression | |
Or Expression Expression | |
Not Expression |
Instances
Read Expression Source # | |
Defined in Text.Pandoc.Query readsPrec :: Int -> ReadS Expression # readList :: ReadS [Expression] # readPrec :: ReadPrec Expression # readListPrec :: ReadPrec [Expression] # | |
Show Expression Source # | |
Defined in Text.Pandoc.Query showsPrec :: Int -> Expression -> ShowS # show :: Expression -> String # showList :: [Expression] -> ShowS # |