[{"name":"MDInline","comment":" Module MDInline provides one type and two functions. The\ntype is MDInline, which is the type of inline Markdown elements\nsuch as italic and bold. The `parse` function parses a string\ninto an MMinline value, a custom type with parts such as\nParagraph, Line, Italic, Bold, Ordered and Unnumbered lists, etc.\n\nThe MDInline.parse function is used in the second of the two\nparsing operations. A string is first parsed into a hierarchical\nlist -- a list of strings paired with an integer level.\nThe hierarchical list is converted to tree. The parser in This\nmodule is mapped over the nodes of the tree to form a new tree.\n\nThe MDInline.string function is used to give a string representation\nof the BlockMMTree values.\n\n@docs MDInline, parse, string\n\n","unions":[{"name":"MDInline","comment":" The type for inline Markdown elements ","args":[],"cases":[["OrdinaryText",["String.String"]],["ItalicText",["String.String"]],["BoldText",["String.String"]],["Code",["String.String"]],["InlineMath",["String.String"]],["StrikeThroughText",["String.String"]],["BracketedText",["String.String"]],["Link",["String.String","String.String"]],["Image",["String.String","String.String"]],["Line",["List.List MDInline.MDInline"]],["Paragraph",["List.List MDInline.MDInline"]],["Stanza",["String.String"]],["Error",["List.List MDInline.MDInline"]]]}],"aliases":[],"values":[{"name":"parse","comment":" MDInline parser ","type":"Markdown.Option.Option -> String.String -> MDInline.MDInline"},{"name":"string","comment":" String representation of an MDInline value ","type":"MDInline.MDInline -> String.String"}],"binops":[]},{"name":"Markdown.Elm","comment":" Render Markdown text to Html using one of the\noptions defined in the `Option` module.\n\n@docs toHtml, toHtmlWithTOC, toHtmlWithExternaTOC\n\n","unions":[],"aliases":[],"values":[{"name":"toHtml","comment":" Parse the input and render it to Html, e.g.,\n\ntoHtml ExtendedMath \"Pythagoras said: $a^2 + b^2 c^2$.\"\n\n","type":"Markdown.Option.Option -> String.String -> Html.Html msg"},{"name":"toHtmlWithExternaTOC","comment":" Like `toHtmlWithTOC`, but constructs returns a record,\none field of which is the rendered document,\nanther of which is the rendered table of contents.\n\n","type":"Markdown.Option.Option -> String.String -> { title : Html.Html msg, toc : Html.Html msg, document : Html.Html msg }"},{"name":"toHtmlWithTOC","comment":" Like `toHtml`, but constructs a table of contents.\n\n","type":"Markdown.Option.Option -> String.String -> Html.Html msg"}],"binops":[]},{"name":"Markdown.Option","comment":" The Option module defines the flavors of Markdown that can be\nparsed and rendered\n\n@docs Option\n\n","unions":[{"name":"Option","comment":" **Description:**\n\n  - Standard: vanilla Markdown\n  - Extended: strike-through text, poetry and verbatim blocks\n  - ExtendMath: like Extended, but TeX formulas are rendered\n\n","args":[],"cases":[["Standard",[]],["Extended",[]],["ExtendedMath",[]]]}],"aliases":[],"values":[],"binops":[]},{"name":"Parse","comment":" The purpose of this module is to parse a Document,\nthat is, a string, into an abstract syntax tree (AST)\nwhich can then be further transformed or passed on\nto a rendering function.  The AST is a rose tree\nof `MBlock` -- short for \"Markdown Blocks.\"\n\n\n@docs toMDBlockTree,  MDBlock, BlockContent, stringOfMDBlockTree\n\n","unions":[{"name":"BlockContent","comment":" The type of a parsed Block\n","args":[],"cases":[["M",["MDInline.MDInline"]],["T",["String.String"]]]},{"name":"MDBlock","comment":" An MBlock differs from the a Block\nin that the Content, which is a\ntype alias for String,\nhas been parsed into a BlockContent value\nby applying\n\n    MDInline.parse : Option -> String -> MDInline\n\n","args":[],"cases":[["MDBlock",["BlockType.BlockType","Parse.Level","Parse.BlockContent"]]]}],"aliases":[],"values":[{"name":"stringOfMDBlockTree","comment":" A string representation of an MDBlockTree.  Useful\nfor verifying the validity of the AST.\n","type":"Tree.Tree Parse.MDBlock -> String.String"},{"name":"toMDBlockTree","comment":" Parse a string using a Markdown flavor option, returning the AST.\nExample:\n\n    parseToMDBlockTree Extended \"This **is** a test.\"\n    --> Tree (MDBlock (MarkdownBlock Root) 0 (M (Paragraph [Line [OrdinaryText \"DOCUMENT\"]]))) [Tree (MDBlock (MarkdownBlock Plain) 1 (M (Paragraph [Line [OrdinaryText (\"This \"),BoldText (\"is \"),OrdinaryText (\"a test.\")],Line []]))) []]\n\n","type":"Markdown.Option.Option -> Parse.Document -> Tree.Tree Parse.MDBlock"}],"binops":[]}]