Text.Sundown.Renderers.Html
- renderHtml :: ByteString -> Extensions -> HtmlRenderMode -> Maybe Int -> ByteString
- noHtmlModes :: HtmlRenderMode
- allHtmlModes :: HtmlRenderMode
- smartypants :: ByteString -> ByteString
- data HtmlRenderMode = HtmlRenderMode {}
Documentation
Arguments
| :: ByteString | |
| -> Extensions | |
| -> HtmlRenderMode | |
| -> Maybe Int | The maximum nesting of the HTML. If Nothing, a default value (16) will be used. |
| -> ByteString |
Parses a ByteString containing the markdown, returns the Html
code.
noHtmlModes :: HtmlRenderModeSource
All the HtmlRenderMode disabled
allHtmlModes :: HtmlRenderModeSource
All the HtmlRenderMode enabled
smartypants :: ByteString -> ByteStringSource
Converts punctuation in Html entities, http://daringfireball.net/projects/smartypants/
data HtmlRenderMode Source
Constructors
| HtmlRenderMode | |
Fields
| |
Instances
| Flag HtmlRenderMode |