pandoc-builder-monadic-1.1.1: A monadic DSL for building pandoc documents
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Pandoc.Builder.Monadic.Veneer

Description

This module exports extra convenient builders, that don't have equivalents in pandoc-types' Text.Pandoc.Builder.

Synopsis

Block list builders

div' :: Builder Block -> Builder Block Source #

Build a generic block container. This would be named div, but that clashes with prelude's div.

span' :: Builder Inline -> Builder Inline Source #

Build a generic inline container. This would be named span, but that clashes with prelude's span.

h1 :: Builder Inline -> Builder Block Source #

Build a level 1 header.

h2 :: Builder Inline -> Builder Block Source #

Build a level 2 header.

h3 :: Builder Inline -> Builder Block Source #

Build a level 3 header.

h4 :: Builder Inline -> Builder Block Source #

Build a level 4 header.

h5 :: Builder Inline -> Builder Block Source #

Build a level 5 header.

tableWithColspec :: [ColSpec] -> [Builder Block] -> [[Builder Block]] -> Builder Block Source #

Colspans seem to be quite important for controlling table layout, so much so that a version of SimpleTable which takes a [ColSpan] seemed in order.

strshow :: Show a => a -> Builder Inline Source #

Build a Str using a values's Show instance.