<document source="index.md">
    <section ids="main-title" names="main\ title">
        <title>
            Main Title
        <target refid="inc-header">
        <section ids="a-sub-heading-in-include inc-header" names="a\ sub-heading\ in\ include inc_header">
            <title>
                A Sub-Heading in Include
            <paragraph>
                Some text with 
                <emphasis>
                    syntax
        <section ids="a-sub-heading-in-nested-include" names="a\ sub-heading\ in\ nested\ include">
            <title>
                A Sub-Heading in Nested Include
            <paragraph>
                Some other text with 
                <strong>
                    syntax
            <paragraph>
                This relative path will refer to the importing file:
            <figure align="default" ids="id1">
                <image candidates="{'*': 'example1.jpg'}" uri="example1.jpg">
                <caption>
                    Caption
            <paragraph>
                This absolute path will refer to the project root (where the 
                <literal>
                    conf.py
                 is):
            <figure align="default" ids="id2">
                <image candidates="{'*': 'subfolder/example2.jpg'}" uri="subfolder/example2.jpg">
                <caption>
                    Caption
            <paragraph>
                <image alt="alt" candidates="{'*': 'subfolder/example2.jpg'}" uri="subfolder/example2.jpg">
            <paragraph>
                <image alt="alt" candidates="{'?': 'https://example.com'}" uri="https://example.com">
            <paragraph>
                <pending_xref refdoc="index" refdomain="True" refexplicit="True" reftarget="index.md" reftype="myst" refwarn="True">
                    <inline classes="xref myst">
                        text
            <paragraph>
                <pending_xref refdoc="index" refdomain="std" refexplicit="False" reftarget="inc_header" reftype="ref" refwarn="True">
                    <inline classes="xref std std-ref">
                        inc_header
            <literal_block classes="code python" source="include_code.py" xml:space="preserve">
                <inline classes="keyword">
                    def
                 
                <inline classes="name function">
                    a_func
                <inline classes="punctuation">
                    (
                <inline classes="name">
                    param
                <inline classes="punctuation">
                    ):
                
                    
                <inline classes="name builtin">
                    print
                <inline classes="punctuation">
                    (
                <inline classes="name">
                    param
                <inline classes="punctuation">
                    )
            <literal_block classes="code python" source="include_code.py" xml:space="preserve">
                <inline classes="ln">
                    0 
                <inline classes="keyword">
                    def
                 
                <inline classes="name function">
                    a_func
                <inline classes="punctuation">
                    (
                <inline classes="name">
                    param
                <inline classes="punctuation">
                    ):
                
                <inline classes="ln">
                    1 
                    
                <inline classes="name builtin">
                    print
                <inline classes="punctuation">
                    (
                <inline classes="name">
                    param
                <inline classes="punctuation">
                    )
            <literal_block source="include_literal.txt" xml:space="preserve">
                This should be *literal*
                
                Lots
                of
                lines
                so we can select some
            <literal_block ids="literal-ref" names="literal_ref" source="include_literal.txt" xml:space="preserve">
                <inline classes="ln">
                    0 
                Lots
                <inline classes="ln">
                    1 
                of
            <section ids="a-sub-sub-heading" names="a\ sub-sub-heading">
                <title>
                    A Sub-sub-Heading
                <paragraph>
                    some more text
