cheapskate-0.1.0.5: Experimental markdown processor.

Safe HaskellNone
LanguageHaskell2010

Cheapskate.Types

Synopsis

Documentation

data Doc

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

Constructors

Doc Options Blocks 

Instances

data CodeAttr

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

Simple representation of HTML tag.

data Options

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