jira-wiki-markup-0.1.1: Handle Jira wiki markup

Copyright© 2019 Albert Krewinkel
LicenseMIT
MaintainerAlbert Krewinkel <tarleb@zeitkraut.de>
Stabilityalpha
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Text.Jira.Markup

Description

Jira markup types.

Synopsis

Documentation

data Block Source #

Blocks of text.

Constructors

Code Language [Parameter] Text

Code block with panel parameters

BlockQuote [Block]

Block of quoted content

Header Int [Inline]

Header with level and text

List ListStyle [[Block]]

List

NoFormat [Parameter] Text

Unformatted text

Panel [Parameter] [Block]

Formatted panel

Para [Inline]

Paragraph of text

Table [Row]

Table

Instances
Eq Block Source # 
Instance details

Defined in Text.Jira.Markup

Methods

(==) :: Block -> Block -> Bool #

(/=) :: Block -> Block -> Bool #

Ord Block Source # 
Instance details

Defined in Text.Jira.Markup

Methods

compare :: Block -> Block -> Ordering #

(<) :: Block -> Block -> Bool #

(<=) :: Block -> Block -> Bool #

(>) :: Block -> Block -> Bool #

(>=) :: Block -> Block -> Bool #

max :: Block -> Block -> Block #

min :: Block -> Block -> Block #

Show Block Source # 
Instance details

Defined in Text.Jira.Markup

Methods

showsPrec :: Int -> Block -> ShowS #

show :: Block -> String #

showList :: [Block] -> ShowS #

data Inline Source #

Inline Jira markup elements.

Constructors

Anchor Text

anchor for internal links

Deleted [Inline]

deleted (struk-out) text

Emph [Inline]

emphasized text

Entity Text

named or numeric HTML entity

Image URL

an image

Inserted [Inline]

text marked as having been inserted

Linebreak

hard linebreak

Link [Inline] URL

hyperlink with alias

Monospaced [Inline]

text rendered with monospaced font

Str Text

simple, markup-less string

Space

space between words

Strong [Inline]

strongly emphasized text

Subscript [Inline]

subscript text

Superscript [Inline]

superscript text

Instances
Eq Inline Source # 
Instance details

Defined in Text.Jira.Markup

Methods

(==) :: Inline -> Inline -> Bool #

(/=) :: Inline -> Inline -> Bool #

Ord Inline Source # 
Instance details

Defined in Text.Jira.Markup

Show Inline Source # 
Instance details

Defined in Text.Jira.Markup

data ListStyle Source #

Style used for list items.

Constructors

CircleBullets

List with round bullets

SquareBullets

List with square bullets

Enumeration

Enumeration, i.e., numbered items

newtype URL Source #

Unified resource location

Constructors

URL 

Fields

Instances
Eq URL Source # 
Instance details

Defined in Text.Jira.Markup

Methods

(==) :: URL -> URL -> Bool #

(/=) :: URL -> URL -> Bool #

Ord URL Source # 
Instance details

Defined in Text.Jira.Markup

Methods

compare :: URL -> URL -> Ordering #

(<) :: URL -> URL -> Bool #

(<=) :: URL -> URL -> Bool #

(>) :: URL -> URL -> Bool #

(>=) :: URL -> URL -> Bool #

max :: URL -> URL -> URL #

min :: URL -> URL -> URL #

Show URL Source # 
Instance details

Defined in Text.Jira.Markup

Methods

showsPrec :: Int -> URL -> ShowS #

show :: URL -> String #

showList :: [URL] -> ShowS #

newtype Row Source #

Table row, containing an arbitrary number of cells.

Constructors

Row 

Fields

Instances
Eq Row Source # 
Instance details

Defined in Text.Jira.Markup

Methods

(==) :: Row -> Row -> Bool #

(/=) :: Row -> Row -> Bool #

Ord Row Source # 
Instance details

Defined in Text.Jira.Markup

Methods

compare :: Row -> Row -> Ordering #

(<) :: Row -> Row -> Bool #

(<=) :: Row -> Row -> Bool #

(>) :: Row -> Row -> Bool #

(>=) :: Row -> Row -> Bool #

max :: Row -> Row -> Row #

min :: Row -> Row -> Row #

Show Row Source # 
Instance details

Defined in Text.Jira.Markup

Methods

showsPrec :: Int -> Row -> ShowS #

show :: Row -> String #

showList :: [Row] -> ShowS #

data Cell Source #

Table cell with block content

Constructors

BodyCell [Block] 
HeaderCell [Block] 
Instances
Eq Cell Source # 
Instance details

Defined in Text.Jira.Markup

Methods

(==) :: Cell -> Cell -> Bool #

(/=) :: Cell -> Cell -> Bool #

Ord Cell Source # 
Instance details

Defined in Text.Jira.Markup

Methods

compare :: Cell -> Cell -> Ordering #

(<) :: Cell -> Cell -> Bool #

(<=) :: Cell -> Cell -> Bool #

(>) :: Cell -> Cell -> Bool #

(>=) :: Cell -> Cell -> Bool #

max :: Cell -> Cell -> Cell #

min :: Cell -> Cell -> Cell #

Show Cell Source # 
Instance details

Defined in Text.Jira.Markup

Methods

showsPrec :: Int -> Cell -> ShowS #

show :: Cell -> String #

showList :: [Cell] -> ShowS #

newtype Language Source #

Programming language used for syntax highlighting.

Constructors

Language Text 
Instances
Eq Language Source # 
Instance details

Defined in Text.Jira.Markup

Ord Language Source # 
Instance details

Defined in Text.Jira.Markup

Show Language Source # 
Instance details

Defined in Text.Jira.Markup

data Parameter Source #

Panel parameter

Constructors

Parameter 

normalizeInlines :: [Inline] -> [Inline] Source #

Normalize a list of inlines, merging elements where possible.