org-parser-0.1.0.0: Parser for Org Mode documents.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Org.Parser.Objects

Description

Parsers for Org objects.

Synopsis

Sets of markup

Marked parsers

data Marked m a Source #

Constructors

Marked 

Fields

Instances

Instances details
Functor m => Functor (Marked m) Source # 
Instance details

Defined in Org.Parser.Definitions

Methods

fmap :: (a -> b) -> Marked m a -> Marked m b Source #

(<$) :: a -> Marked m b -> Marked m a Source #

Alternative m => Monoid (Marked m a) Source # 
Instance details

Defined in Org.Parser.Definitions

Methods

mempty :: Marked m a Source #

mappend :: Marked m a -> Marked m a -> Marked m a Source #

mconcat :: [Marked m a] -> Marked m a Source #

Alternative m => Semigroup (Marked m a) Source # 
Instance details

Defined in Org.Parser.Definitions

Methods

(<>) :: Marked m a -> Marked m a -> Marked m a Source #

sconcat :: NonEmpty (Marked m a) -> Marked m a Source #

stimes :: Integral b => b -> Marked m a -> Marked m a Source #

markupContext :: Monoid k => (Text -> k) -> Marked OrgParser k -> OrgParser k Source #

Parse inside a "context": text that is not captured by the parser elems gets converted to the type k via the function f.

plainMarkupContext :: Marked OrgParser OrgObjects -> OrgParser OrgObjects Source #

Parse inside a "plain context", i.e., plain text not matched by any parsers gets converted to Plain objects.

plainMarkupContext = markupContext plain

General purpose parsers

Objects

code :: Marked OrgParser OrgObjects Source #

Parse a code object.

verbatim :: Marked OrgParser OrgObjects Source #

Parse a verbatim object.

italic :: Marked OrgParser OrgObjects Source #

Parse an italic object.

underline :: Marked OrgParser OrgObjects Source #

Parse an underline object.

bold :: Marked OrgParser OrgObjects Source #

Parse a bold object.

strikethrough :: Marked OrgParser OrgObjects Source #

Parse a strikethrough object.

singleQuoted :: Marked OrgParser OrgObjects Source #

Parse a single-quoted object.

doubleQuoted :: Marked OrgParser OrgObjects Source #

Parse a double-quoted object.

entity :: Marked OrgParser OrgObjects Source #

Parse an entity object.

latexFragment :: Marked OrgParser OrgObjects Source #

Parse a LaTeX fragment object.

texMathFragment :: Marked OrgParser OrgObjects Source #

Parse a TeX math fragment object.

exportSnippet :: Marked OrgParser OrgObjects Source #

Parse an export snippet object.

citation :: Marked OrgParser OrgObjects Source #

Parse a citation object.

inlBabel :: Marked OrgParser OrgObjects Source #

Parse an inline babel call object.

inlSrc :: Marked OrgParser OrgObjects Source #

Parse an inline source object.

linebreak :: Marked OrgParser OrgObjects Source #

Parse a linebreak object.

angleLink :: Marked OrgParser OrgObjects Source #

Parse a angle link object.

regularLink :: Marked OrgParser OrgObjects Source #

Parse a regular link object.

target :: Marked OrgParser OrgObjects Source #

Parse a target object.

suscript :: Marked OrgParser OrgObjects Source #

Parse a subscript or a superscript object.

macro :: Marked OrgParser OrgObjects Source #

Parse a macro object.

footnoteReference :: Marked OrgParser OrgObjects Source #

Parse a footnote reference object.

timestamp :: Marked OrgParser OrgObjects Source #

Parse a timestamp object.

statisticCookie :: Marked OrgParser OrgObjects Source #

Parse a statistic cookie object.

Auxiliary

linkToTarget :: Text -> LinkTarget Source #

Transform the link text into a link target.