diff --git a/ui/builder.html b/ui/builder.html index 64f7c33..d01a469 100644 --- a/ui/builder.html +++ b/ui/builder.html @@ -1519,7 +1519,15 @@ function renderFillerTemplateView(){ // ── 파싱 & 합치기 ────────────────────────────────────── function extractSectionMarks(node){ const marks=new Set(); - function walk(n){ for(const c of n.children??[]){ if(c.type==='SECTION'){ const m=c.attributes?.mark??''; if(m) marks.add(m); walk(c); } } } + function walk(n){ + const parentCollect=n.attributes?.collect==='true'; + for(const c of n.children??[]){ + if(c.type!=='SECTION') continue; + // 수집 노드의 직접 자식은 스키마(inline 마크) — 섹션 구분자로 쓰지 않음 + if(!parentCollect){ const m=c.attributes?.mark??''; if(m) marks.add(m); } + walk(c); + } + } walk(node); return [...marks]; }