Skip to content
FutureBlitz

    Install

    Import std.text.markdown

    ParseMarkdown

    std.text.markdown

    function

    Public Function ParseMarkdown(text: String, extensions: MarkdownExtensions = Usual): MarkdownNode

    The Markdown as a tree, from its Document down, with the extensions, tables and task lists unless they say others.

    Examples

    Local document = ParseMarkdown("# Title\n\nSome *text*.")
    Expect(document.Kind == MarkdownKind.Document)
    Expect(document.Children[0].Kind == MarkdownKind.Heading && document.Children[0].Level == 1)
    Expect(document.Children[1].PlainText() == "Some text.")

    std/text/markdown.fb, line 263

    Report an issue with this page or with FutureBlitz on GitHub.