renderHtml :: (ToBS a, FromBS b)=> Extensions-> HtmlRenderMode-> BoolIf true, smartypant the output
-> Maybe IntThe maximum nesting of the HTML. If Nothing, a default value (16) will be used.
-> a-> b
Parses markdown, returns the Html.
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
Modulesundown-0.6Haskell98
Module exposing a generic class to convert to/from UTF8 ByteStrings, and the corresponding generic markdown functions.
renderHtml :: (ToBS a, FromBS b)=> Extensions-> HtmlRenderMode-> BoolIf true, smartypant the output
-> Maybe IntThe maximum nesting of the HTML. If Nothing, a default value (16) will be used.
-> a-> bParses markdown, returns the Html.
Converts something to an UTF8 ByteString.
toBS :: a -> ByteStringConverts an UTF8 ByteString to something.
fromBS :: ByteString -> aA set of switches to enable or disable markdown features.
ExtensionsextNoIntraEmphasis :: BoolTurn off underscores insode a word does designating emphasis.
extTables :: BoolextFencedCode :: BoolTurns on a non-indentation form of code-blocks, by blocking off a regionwith ~ or `.
extAutolink :: BoolTurn things that look like URLs and email addresses into links
extStrikethrough :: BoolSurround text with ~ to designate it as struck through
extSpaceHeaders :: BoolextSuperscript :: BoolextLaxSpacing :: BoolAllow blocks inside of paragraphs, instead requireing tags to be on separate lines
Flag ExtensionsDefined in sundown-0.6 · Text.Sundown.ForeignAll Extensions enabled
All Extensions disabled
HtmlRenderModehtmlSkipHtml :: BoolDrop in-line HTML tags from the output
htmlSkipStyle :: BoolDon't add any style tags to the output
htmlSkipImages :: BoolDon't include images in the output
htmlSkipLinks :: BoolDon't include links in the output
htmlExpandTabs :: BoolhtmlSafelink :: BoolSanity check links for known URL schemes
htmlToc :: BoolInclude a table of contents in the output
htmlHardWrap :: BoolhtmlUseXhtml :: BoolProduce XHTML output instead of HTML
htmlEscape :: BoolFlag HtmlRenderModeDefined in sundown-0.6 · Text.Sundown.Html.ForeignAll the HtmlRenderMode disabled
All the HtmlRenderMode enabled