ftml 1.30.0

Foundation Text Markup Language - a library to render Wikidot text as HTML
Documentation
{
    "input": "+ A\n[[>toc]]",
    "tree": {
        "elements": [
            {
                "element": "container",
                "data": {
                    "type": {
                        "header": {
                            "level": 1,
                            "has-toc": true
                        }
                    },
                    "attributes": {},
                    "elements": [
                        {
                            "element": "text",
                            "data": "A"
                        }
                    ]
                }
            },
            {
                "element": "container",
                "data": {
                    "type": "paragraph",
                    "attributes": {},
                    "elements": [
                        {
                            "element": "text",
                            "data": "[["
                        },
                        {
                            "element": "text",
                            "data": ">"
                        },
                        {
                            "element": "text",
                            "data": "toc"
                        },
                        {
                            "element": "text",
                            "data": "]]"
                        }
                    ]
                }
            },
            {
                "element": "footnote-block",
                "data": {
                    "title": null,
                    "hide": false
                }
            }
        ],
        "styles": [
        ],
        "html-blocks": [
        ],
        "code-blocks": [
        ],
        "table-of-contents": [
            {
                "element": "list",
                "data": {
                    "type": "bullet",
                    "attributes": {},
                    "items": [
                        {
                            "item-type": "elements",
                            "attributes": {},
                            "elements": [
                                {
                                    "element": "link",
                                    "data": {
                                        "type": "table-of-contents",
                                        "link": "#toc0",
                                        "label": {
                                            "text": "A"
                                        },
                                        "target": null
                                    }
                                }
                            ]
                        }
                    ]
                }
            }
        ],
        "footnotes": [
        ],
        "bibliographies": [
        ]
    },
    "errors": [
        {
            "token": "input-end",
            "rule": "block",
            "span": [12, 12],
            "kind": "no-such-block"
        },
        {
            "token": "left-block",
            "rule": "fallback",
            "span": [4, 6],
            "kind": "no-rules-match"
        },
        {
            "token": "right-block",
            "rule": "fallback",
            "span": [10, 12],
            "kind": "no-rules-match"
        }
    ]
}