<?xml version="1.0" encoding="UTF-8"?>
<document xmlns="http://commonmark.org/xml/1.0">
    <table_of_contents type="bullet" tight="false">
        <item>
            <list type="bullet" tight="false">
                <item>
                    <link destination="#content-a-level-2-heading-to-start" title="">
                        <text>A level 2 heading to start</text>
                    </link>
                    <list type="bullet" tight="false">
                        <item>
                            <list type="bullet" tight="false">
                                <item>
                                    <link destination="#content-followed-by-a-level-4" title="">
                                        <text>Followed by a level 4</text>
                                    </link>
                                </item>
                            </list>
                        </item>
                    </list>
                </item>
            </list>
        </item>
        <item>
            <link destination="#content-then-a-level-1" title="">
                <text>Then a level 1</text>
            </link>
            <list type="bullet" tight="false">
                <item>
                    <link destination="#content-and-another-level-2" title="">
                        <text>And another level 2</text>
                    </link>
                    <list type="bullet" tight="false">
                        <item>
                            <list type="bullet" tight="false">
                                <item>
                                    <list type="bullet" tight="false">
                                        <item>
                                            <link destination="#content-then-a-level-5" title="">
                                                <text>Then a level 5</text>
                                            </link>
                                        </item>
                                    </list>
                                </item>
                            </list>
                        </item>
                        <item>
                            <link destination="#content-and-then-a-level-3" title="">
                                <text>And then a level 3</text>
                            </link>
                            <list type="bullet" tight="false">
                                <item>
                                    <list type="bullet" tight="false">
                                        <item>
                                            <list type="bullet" tight="false">
                                                <item>
                                                    <link destination="#content-followed-by-a-level-6" title="">
                                                        <text>Followed by a level 6</text>
                                                    </link>
                                                </item>
                                            </list>
                                        </item>
                                    </list>
                                </item>
                            </list>
                        </item>
                        <item>
                            <link destination="#content-then-another-level-3" title="">
                                <text>Then another level 3</text>
                            </link>
                            <list type="bullet" tight="false">
                                <item>
                                    <link destination="#content-then-level-4" title="">
                                        <text>Then level 4</text>
                                    </link>
                                </item>
                            </list>
                        </item>
                        <item>
                            <link destination="#content-level-3" title="">
                                <text>Level 3</text>
                            </link>
                        </item>
                    </list>
                </item>
                <item>
                    <link destination="#content-level-2" title="">
                        <text>Level 2</text>
                    </link>
                    <list type="bullet" tight="false">
                        <item>
                            <list type="bullet" tight="false">
                                <item>
                                    <link destination="#content-level-4" title="">
                                        <text>Level 4</text>
                                    </link>
                                </item>
                            </list>
                        </item>
                    </list>
                </item>
            </list>
        </item>
        <item>
            <link destination="#content-level-1" title="">
                <text>Level 1</text>
            </link>
        </item>
    </table_of_contents>
    <paragraph>
        <text>Here's a sample Markdown document with weird headings</text>
    </paragraph>
    <heading level="2">
        <heading_permalink slug="a-level-2-heading-to-start" />
        <text>A level 2 heading to start</text>
    </heading>
    <heading level="4">
        <heading_permalink slug="followed-by-a-level-4" />
        <text>Followed by a level 4</text>
    </heading>
    <heading level="1">
        <heading_permalink slug="then-a-level-1" />
        <text>Then a level 1</text>
    </heading>
    <heading level="2">
        <heading_permalink slug="and-another-level-2" />
        <text>And another level 2</text>
    </heading>
    <heading level="5">
        <heading_permalink slug="then-a-level-5" />
        <text>Then a level 5</text>
    </heading>
    <heading level="3">
        <heading_permalink slug="and-then-a-level-3" />
        <text>And then a level 3</text>
    </heading>
    <heading level="6">
        <heading_permalink slug="followed-by-a-level-6" />
        <text>Followed by a level 6</text>
    </heading>
    <heading level="3">
        <heading_permalink slug="then-another-level-3" />
        <text>Then another level 3</text>
    </heading>
    <heading level="4">
        <heading_permalink slug="then-level-4" />
        <text>Then level 4</text>
    </heading>
    <heading level="3">
        <heading_permalink slug="level-3" />
        <text>Level 3</text>
    </heading>
    <heading level="2">
        <heading_permalink slug="level-2" />
        <text>Level 2</text>
    </heading>
    <heading level="4">
        <heading_permalink slug="level-4" />
        <text>Level 4</text>
    </heading>
    <heading level="1">
        <heading_permalink slug="level-1" />
        <text>Level 1</text>
    </heading>
</document>
