| Safe Haskell | None |
|---|
Text.Sundown.Html.Text
Contents
- renderHtml :: Extensions -> HtmlRenderMode -> Bool -> Maybe Int -> Text -> Text
- smartypants :: Text -> Text
- data Extensions = Extensions {}
- allExtensions :: Extensions
- noExtensions :: Extensions
- data HtmlRenderMode = HtmlRenderMode {
- htmlSkipHtml :: Bool
- htmlSkipStyle :: Bool
- htmlSkipImages :: Bool
- htmlSkipLinks :: Bool
- htmlExpandTabs :: Bool
- htmlSafelink :: Bool
- htmlToc :: Bool
- htmlHardWrap :: Bool
- htmlUseXhtml :: Bool
- htmlEscape :: Bool
- noHtmlModes :: HtmlRenderMode
- allHtmlModes :: HtmlRenderMode
Documentation
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 -> TextSource
Converts punctuation in Html entities, http://daringfireball.net/projects/smartypants/
Markdown extensions
data Extensions Source
A set of switches to enable or disable markdown features.
Constructors
| Extensions | |
Fields
| |
allExtensions :: ExtensionsSource
All Extensions enabled
noExtensions :: ExtensionsSource
All Extensions disabled
Html render modes
data HtmlRenderMode Source
Constructors
| HtmlRenderMode | |
Fields
| |
noHtmlModes :: HtmlRenderModeSource
All the HtmlRenderMode disabled
allHtmlModes :: HtmlRenderModeSource
All the HtmlRenderMode enabled