--- /** * Solution — paired by id with an at chapter end * (v4.3.0, closes #71). * * Author writes `solution text` inside * an wrapper. The `for` attribute matches the * corresponding 's `id`; the rendered solution links back to * the inline exercise via `#exercise-{for}`. * * Manual pairing — no build-time auto-collection of Exercise content * (deferred to v4.4.0+). Author maintains the id↔for mapping by hand. * * Family: book-genre (cross-profile). */ interface Props { for: string; } const { for: forId } = Astro.props; ---
Solution ↑ Exercise