ftml 1.30.0

Foundation Text Markup Language - a library to render Wikidot text as HTML
Documentation
{
    "input": "++++ [[size 80%]]Small heading[[/size]]",
    "tree": {
        "elements": [
            {
                "element": "container",
                "data": {
                    "type": {
                        "header": {
                            "level": 4,
                            "has-toc": true
                        }
                    },
                    "attributes": {},
                    "elements": [
                        {
                            "element": "container",
                            "data": {
                                "type": "size",
                                "attributes": {
                                    "style": "font-size: 80%;"
                                },
                                "elements": [
                                    {
                                        "element": "text",
                                        "data": "Small"
                                    },
                                    {
                                        "element": "text",
                                        "data": " "
                                    },
                                    {
                                        "element": "text",
                                        "data": "heading"
                                    }
                                ]
                            }
                        }
                    ]
                }
            },
            {
                "element": "footnote-block",
                "data": {
                    "title": null,
                    "hide": false
                }
            }
        ],
        "html-blocks": [
        ],
        "code-blocks": [
        ],
        "table-of-contents": [
            {
                "element": "list",
                "data": {
                    "type": "bullet",
                    "attributes": {},
                    "items": [
                        {
                            "item-type": "sub-list",
                            "element": "list",
                            "data": {
                                "type": "bullet",
                                "attributes": {},
                                "items": [
                                    {
                                        "item-type": "sub-list",
                                        "element": "list",
                                        "data": {
                                            "type": "bullet",
                                            "attributes": {},
                                            "items": [
                                                {
                                                    "item-type": "sub-list",
                                                    "element": "list",
                                                    "data": {
                                                        "type": "bullet",
                                                        "attributes": {},
                                                        "items": [
                                                            {
                                                                "item-type": "elements",
                                                                "attributes": {},
                                                                "elements": [
                                                                    {
                                                                        "element": "link",
                                                                        "data": {
                                                                            "type": "table-of-contents",
                                                                            "link": "#toc0",
                                                                            "label": {
                                                                                "text": "Small heading"
                                                                            },
                                                                            "target": null
                                                                        }
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                ]
                            }
                        }
                    ]
                }
            }
        ],
        "footnotes": [
        ],
        "bibliographies": [
        ]
    },
    "errors": [
    ]
}