You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: handle arbitrarily deep BAB nesting in phantom-BAB filter
The previous filter only checked direct children of each top-level BAB
node when determining whether it had pasal content. This missed the
BAB → Bagian → Paragraf → Pasal nesting depth documented in the schema,
causing those BABs to be silently filtered out.
Replace with a parent→children map + recursive hasDescendantPasal()
that walks the full subtree at any depth, so a BAB is only filtered if
no structural node in its entire subtree is a direct parent of a pasal.
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments