📦 Initialize Geulbeot structure and merge Prompts & test projects

This commit is contained in:
2026-03-05 11:32:29 +09:00
commit 555a954458
687 changed files with 205247 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
// Type A에서 검증된 제목+본문 그룹핑
function groupHeadingWithParagraph(nodes, index) {
const node = nodes[index];
if(!node) return { group: [], consumed: 0 };
const next = nodes[index + 1];
if(!node.tagName) return { group: [node], consumed: 1 };
const tag = node.tagName.toUpperCase();
if((tag === 'H2' || tag === 'H3') && next && next.tagName && next.tagName.toUpperCase() === 'P') {
return { group: [node