x
', refs='lax') + + + +def test_included_document_scopes(): + source = r'''# Recording guide +## Overview {#sec-overview} +## Equipment {#sec-equipment} + +::: {.include scope=__camera} +# Camera +## Setup {#sec-setup} +See [@sec-setup] and [overview](#sec-overview). +::: + +::: {.include scope=__mic} +# Microphone +## Setup {#sec-setup} +See [@sec-setup]. +::: + +## Record {#sec-record} +See [@sec-setup__camera; @sec-setup__mic]. +''' + doc = md2mdhtml(source) + from xml.etree import ElementTree as ET + early = ET.fromstring('