pandoc-query-1.0.0: Pandoc filter to extract only the links.
Copyright(c) 2023 Amy de Buitléir
LicenseGPL-3.0-only
Maintaineramy@nualeargais.ie
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Pandoc.Query

Description

See https://github.com/mhwombat/pandoc-maths-web for information on how to use this filter.

Synopsis

Documentation

transform :: [Pandoc] -> Pandoc -> IO Pandoc Source #

Replaces any executable queries in a Pandoc document with the formatted result of the query.

data Query Source #

Represents an executable query and specifies how to format the results.

Instances

Instances details
Read Query Source # 
Instance details

Defined in Text.Pandoc.Query

Show Query Source # 
Instance details

Defined in Text.Pandoc.Query

Methods

showsPrec :: Int -> Query -> ShowS #

show :: Query -> String #

showList :: [Query] -> ShowS #

data Formatter Source #

Specifies how to format the query results. Currently results can only be specified using markdown syntax. However, the query results will be parsed into Pandoc's native format and inserted into the document. So the resulting document can be output in any format supported by Pandoc.

Constructors

ParseFromMarkdown Text 

Instances

Instances details
Read Formatter Source # 
Instance details

Defined in Text.Pandoc.Query

Show Formatter Source # 
Instance details

Defined in Text.Pandoc.Query

data SortOrder Source #

Order in which the selected documents should be presented.

Constructors

Ascending Text 
Descending Text 

Instances

Instances details
Read SortOrder Source # 
Instance details

Defined in Text.Pandoc.Query

Show SortOrder Source # 
Instance details

Defined in Text.Pandoc.Query

satisfies :: Pandoc -> Expression -> Bool Source #

Returns true if the document satisfies the expression; returns false otherwise.