Text.Sundown.Html (original) (raw)
Contents
Description
Module exposing a generic class to convert to/from UTF8 [ByteString](../bytestring-0.12.2.0/Data-ByteString.html#t:ByteString "Data.ByteString")
s, and the corresponding generic markdown functions.
Synopsis
- renderHtml :: (ToBS a, FromBS b) => Extensions -> HtmlRenderMode -> Bool -> Maybe Int -> a -> b
- smartypants :: (ToBS a, FromBS b) => a -> b
- class ToBS a where
- toBS :: a -> ByteString
- class FromBS a where
- fromBS :: ByteString -> a
- data Extensions = Extensions {
- extNoIntraEmphasis :: Bool
- extTables :: Bool
- extFencedCode :: Bool
- extAutolink :: Bool
- extStrikethrough :: Bool
- extSpaceHeaders :: Bool
- extSuperscript :: Bool
- extLaxSpacing :: Bool
}
- 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