Split rendered article body HTML into two chunks at the boundary of the second <h2 element:
lead โ everything from the start through (but not including) the second <h2. By aggregator contract the first H2 is always Executive Brief, so this chunk contains the opening BLUF / executive summary and nothing else.
rest โ the remainder of the body (Synthesis Summary onwards).
The renderer composes the page as header โ lead โ reader-guide โ rest โ sources so that readers see the Executive Brief immediately, then the Reader Intelligence Guide (which explains how to read the rest), then the full analysis, then the source-card appendix. This is the journalist-optimal "fast answer โ operating manual โ deep analysis โ provenance" arc.
If the body contains fewer than two <h2 elements (very short articles), the entire body is returned as lead and rest is empty โ the reader guide will then render after the whole body which still matches the "executive brief first, then reader guide" intent because a single-section body is, by definition, the executive brief.
Split rendered article body HTML into two chunks at the boundary of the second
<h2element:leadโ everything from the start through (but not including) the second<h2. By aggregator contract the first H2 is always Executive Brief, so this chunk contains the opening BLUF / executive summary and nothing else.restโ the remainder of the body (Synthesis Summary onwards).The renderer composes the page as
header โ lead โ reader-guide โ rest โ sourcesso that readers see the Executive Brief immediately, then the Reader Intelligence Guide (which explains how to read the rest), then the full analysis, then the source-card appendix. This is the journalist-optimal "fast answer โ operating manual โ deep analysis โ provenance" arc.If the body contains fewer than two
<h2elements (very short articles), the entire body is returned asleadandrestis empty โ the reader guide will then render after the whole body which still matches the "executive brief first, then reader guide" intent because a single-section body is, by definition, the executive brief.Exported for testability.