Markdown.Parser.Blocks

Block-level parsers.

parse : String -> Result (Array DeadEnd) (Array Block)

Parse blocks.

parseRaw : String -> Result (Array DeadEnd) (Array RawBlock)

Parse blocks without parsing the inline elements.

parser : Parser (Array Block)

Top-level block parser.

rawBlockParser :
Array RawBlock
-> Parser (Step ( Array RawBlock)
(Array RawBlock))

Raw block parser.

type RawBlock
= RawBlock Block
| RawBlockQuote String
| RawFencedCode ({ body : String, language : Maybe String })
| RawHeading ({ level : Int }) String
| RawHtml Html
| RawHtmlOpening Opening
| RawHtmlClosing Closing
| RawHtmlText String
| RawIndentedCode String
| RawOrderedList ({ leadingSpaces : Int, start : Int, symbol : String }) (Array (Array String))
| RawParagraph ({ closed : Bool }) String
| RawThematicBreak
| RawUnorderedList ({ leadingSpaces : Int, symbol : String }) (Array (Array String))