fix: 노션 테이블 렌더링 깨짐 해결 (구분선 행 생성)#35
Merged
Merged
Conversation
_blocks_to_md 에 table 블록 핸들러를 추가해 헤더 행 다음에 table_width 기반 구분선(| --- | --- |)을 삽입한다. 그동안 table_row 만 처리하고 구분선을 넣지 않아 표가 | 문자 든 문단으로 렌더링되던 문제를 해결. - 표 앞뒤를 빈 줄로 감싸 인접 문단과 분리 - 셀 내 | 는 \| 로 이스케이프해 열 깨짐 방지 - 자식 table_row 는 직접 처리하고 continue 로 중복 재귀 차단 Refs #34 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
발행 파이프라인 버그로 구분선 없이 저장돼 깨져 있던 표를 일괄 수정한다. 5개 글 9개 표가 대상이며, 각 표 헤더 다음에 구분선 행을 삽입하고 표 앞뒤를 빈 줄로 분리했다. Refs #34 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
seongyeon1
approved these changes
Jun 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
배경
노션 원문의 표가 웹에서 표가 아니라
|문자가 든 한 줄 문단으로 렌더링되던 문제(#34)를 해결합니다.원인
scripts/notion-publish.py의 노션→마크다운 변환에 테이블 구분선(| --- | --- |) 생성 로직이 없었음. 노션 API는 표를table(메타:table_width) →table_row(자식) 구조로 내려주는데,table블록 핸들러가 없어table_row만| 셀 |로 출력되고 구분선이 빠졌습니다. 마크다운/MDX는 구분선이 있어야 표로 인식하므로 평범한 문단으로 렌더됐습니다.변경
1.
fix(publish)— 파이프라인 수정_blocks_to_md에table블록 핸들러 추가table_width기반 구분선 삽입|는\|로 이스케이프table_row직접 처리 후continue로 중복 재귀 차단2.
fix(blog)— 기존 글 백필전/후 비교
검증
Generated static files, 에러 없음)<table>/<th>/<td>로 렌더링Closes #34
🤖 Generated with Claude Code