INNER CODE UNIT · Python
idx
sangrokjung/claude-forge · scripts/md-to-docx/convert.py:566
idx = start_idx + 2
rows = []
while idx < len(lines) and lines[idx].strip().startswith('|'):
row_line = lines[idx]
row_data = [cell.strip() for cell in row_line.strip('|').split('|')]
rows.append(row_data)
idx += 1
return headers, rows, idx
def detect_doc_type(filename: str) -> str:
"""파일명에서 문서 유형 추출"""
mapping = {
'제안서': '통합 제안서',
'일정표': '일정표',
'견적서': '비용 견적서',