{#await Promise.all( [leafTitle, leafContent, leafHierarchy, publicationType, divergingBranches], )} {:then [leafTitle, leafContent, leafHierarchy, publicationType, divergingBranches]}
{#each divergingBranches as [branch, depth]} {@render sectionHeading( getMatchingTags(branch, "title")[0]?.[1] ?? "", depth, )} {/each} {#if leafTitle} {@const leafDepth = leafHierarchy.length - 1}
{#await leafEvent then event} {#if event} {/if} {/await}
{@render sectionHeading(leafTitle, leafDepth)}
{/if} {@render contentParagraph( leafContent.toString(), publicationType ?? "article", false, )}
{/await}