-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Fast, accurate CommonMark (Markdown) parser and renderer -- @package cmark @version 0.4.1 module CMark -- | Convert CommonMark formatted text to Html, using cmark's built-in -- renderer. commonmarkToHtml :: [CMarkOption] -> Text -> Text -- | Convert CommonMark formatted text to CommonMark XML, using cmark's -- built-in renderer. commonmarkToXml :: [CMarkOption] -> Text -> Text -- | Convert CommonMark formatted text to groff man, using cmark's built-in -- renderer. commonmarkToMan :: [CMarkOption] -> Maybe Int -> Text -> Text -- | Convert CommonMark formatted text to latex, using cmark's built-in -- renderer. commonmarkToLaTeX :: [CMarkOption] -> Maybe Int -> Text -> Text -- | Convert CommonMark formatted text to a structured Node tree, -- which can be transformed or rendered using Haskell code. commonmarkToNode :: [CMarkOption] -> Text -> Node nodeToHtml :: [CMarkOption] -> Node -> Text nodeToXml :: [CMarkOption] -> Node -> Text nodeToMan :: [CMarkOption] -> Maybe Int -> Node -> Text nodeToLaTeX :: [CMarkOption] -> Maybe Int -> Node -> Text nodeToCommonmark :: [CMarkOption] -> Maybe Int -> Node -> Text -- | Include a data-sourcepos attribute on block elements. optSourcePos :: CMarkOption -- | Normalize the document by consolidating adjacent text nodes. optNormalize :: CMarkOption -- | Render softbreak elements as hard line breaks. optHardBreaks :: CMarkOption -- | Convert straight quotes to curly, --- to em-dash, -- -- to en-dash. optSmart :: CMarkOption -- | Suppress rendering of raw HTML and potentially dangerous URLs in links -- and images. optSafe :: CMarkOption data Node Node :: (Maybe PosInfo) -> NodeType -> [Node] -> Node data NodeType DOCUMENT :: NodeType HRULE :: NodeType PARAGRAPH :: NodeType BLOCK_QUOTE :: NodeType HTML :: Text -> NodeType CODE_BLOCK :: Info -> Text -> NodeType HEADER :: Level -> NodeType LIST :: ListAttributes -> NodeType ITEM :: NodeType TEXT :: Text -> NodeType SOFTBREAK :: NodeType LINEBREAK :: NodeType INLINE_HTML :: Text -> NodeType CODE :: Text -> NodeType EMPH :: NodeType STRONG :: NodeType LINK :: Url -> Title -> NodeType IMAGE :: Url -> Title -> NodeType data PosInfo PosInfo :: Int -> Int -> Int -> Int -> PosInfo startLine :: PosInfo -> Int startColumn :: PosInfo -> Int endLine :: PosInfo -> Int endColumn :: PosInfo -> Int data DelimType PERIOD_DELIM :: DelimType PAREN_DELIM :: DelimType data ListType BULLET_LIST :: ListType ORDERED_LIST :: ListType data ListAttributes ListAttributes :: ListType -> Bool -> Int -> DelimType -> ListAttributes listType :: ListAttributes -> ListType listTight :: ListAttributes -> Bool listStart :: ListAttributes -> Int listDelim :: ListAttributes -> DelimType type Url = Text type Title = Text type Level = Int type Info = Text data CMarkOption instance Typeable DelimType instance Typeable ListType instance Typeable ListAttributes instance Typeable NodeType instance Typeable PosInfo instance Typeable Node instance Show DelimType instance Read DelimType instance Eq DelimType instance Ord DelimType instance Data DelimType instance Generic DelimType instance Show ListType instance Read ListType instance Eq ListType instance Ord ListType instance Data ListType instance Generic ListType instance Show ListAttributes instance Read ListAttributes instance Eq ListAttributes instance Ord ListAttributes instance Data ListAttributes instance Generic ListAttributes instance Show NodeType instance Read NodeType instance Eq NodeType instance Ord NodeType instance Data NodeType instance Generic NodeType instance Show PosInfo instance Read PosInfo instance Eq PosInfo instance Ord PosInfo instance Data PosInfo instance Generic PosInfo instance Show Node instance Read Node instance Eq Node instance Ord Node instance Data Node instance Generic Node instance Datatype D1DelimType instance Constructor C1_0DelimType instance Constructor C1_1DelimType instance Datatype D1ListType instance Constructor C1_0ListType instance Constructor C1_1ListType instance Datatype D1ListAttributes instance Constructor C1_0ListAttributes instance Selector S1_0_0ListAttributes instance Selector S1_0_1ListAttributes instance Selector S1_0_2ListAttributes instance Selector S1_0_3ListAttributes instance Datatype D1NodeType instance Constructor C1_0NodeType instance Constructor C1_1NodeType instance Constructor C1_2NodeType instance Constructor C1_3NodeType instance Constructor C1_4NodeType instance Constructor C1_5NodeType instance Constructor C1_6NodeType instance Constructor C1_7NodeType instance Constructor C1_8NodeType instance Constructor C1_9NodeType instance Constructor C1_10NodeType instance Constructor C1_11NodeType instance Constructor C1_12NodeType instance Constructor C1_13NodeType instance Constructor C1_14NodeType instance Constructor C1_15NodeType instance Constructor C1_16NodeType instance Constructor C1_17NodeType instance Datatype D1PosInfo instance Constructor C1_0PosInfo instance Selector S1_0_0PosInfo instance Selector S1_0_1PosInfo instance Selector S1_0_2PosInfo instance Selector S1_0_3PosInfo instance Datatype D1Node instance Constructor C1_0Node