sundown-0.6: Bindings to the sundown markdown library

Safe HaskellNone
LanguageHaskell98

Text.Sundown.Html.Text

Contents

Synopsis

Documentation

renderHtml #

Arguments

:: Extensions 
-> HtmlRenderMode 
-> Bool

If true, smartypant the output

-> Maybe Int

The maximum nesting of the HTML. If Nothing, a default value (16) will be used.

-> Text 
-> Text 

Parses a Text containing the markdown, returns the Html code.

smartypants :: Text -> Text #

Converts punctuation in Html entities, http://daringfireball.net/projects/smartypants/

Markdown extensions

data Extensions #

A set of switches to enable or disable markdown features.

Constructors

Extensions 

Fields

Html render modes

data HtmlRenderMode #

Constructors

HtmlRenderMode 

Fields