cheapskate-0.1: Experimental markdown processor.

Safe HaskellNone

Cheapskate.Types

Synopsis

Documentation

data Doc Source

Structured representation of a document. The Options affect how the document is rendered by toHtml.

Constructors

Doc Options Blocks 

data CodeAttr Source

Attributes for fenced code blocks. codeLang is the first word of the attribute line, codeInfo is the rest.

Constructors

CodeAttr 

Fields

codeLang :: Text
 
codeInfo :: Text
 

data HtmlTagType Source

Simple representation of HTML tag.

data Options Source

Rendering and parsing options.

Constructors

Options 

Fields

sanitize :: Bool

Sanitize raw HTML, link/image attributes

allowRawHtml :: Bool

Allow raw HTML (if false it gets escaped)

preserveHardBreaks :: Bool

Preserve hard line breaks in the source

debug :: Bool

Print container structure for debugging