jira-wiki-markup-1.1.0: Handle Jira wiki markup

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

Text.Jira.Printer

Description

Generate Jira wiki markup text from an abstract syntax tree.

Synopsis

Documentation

pretty :: Doc -> Text Source #

Render Jira document as Jira wiki formatted text.

renderBlock :: Block -> JiraPrinter Text Source #

Render a block as Jira wiki format.

renderInline :: Inline -> Text Source #

Renders a single inline item as Jira markup.

prettyBlocks :: [Block] -> Text Source #

Render a list of Jira blocks as Jira wiki formatted text.

prettyInlines :: [Inline] -> Text Source #

Renders a list of Jira inline markup elements.

data PrinterState Source #

Internal state used by the printer.

Constructors

PrinterState 

startState :: PrinterState Source #

Default start state of the printer.

withDefault :: JiraPrinter a -> a Source #

Run with default state.