Safe Haskell | None |
---|
- renderHtml :: String -> Extensions -> HtmlRenderMode -> Bool -> Maybe Int -> String
- smartypants :: String -> String
- 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
:: String | |
-> 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. |
-> String |
Parses a ByteString
containing the markdown, returns the Html code.
smartypants :: String -> StringSource
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.
Extensions | |
|
Flag Extensions |
allExtensions :: ExtensionsSource
All Extensions
enabled
noExtensions :: ExtensionsSource
All Extensions
disabled
Html render modes
data HtmlRenderMode Source
HtmlRenderMode | |
|
Flag HtmlRenderMode |
noHtmlModes :: HtmlRenderModeSource
All the HtmlRenderMode
disabled
allHtmlModes :: HtmlRenderModeSource
All the HtmlRenderMode
enabled