fix(reverse_sync): 순서 목록 시작 번호(ol start) 변경을 XHTML에 반영합니다#905
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
MDX 순서 목록의 시작 번호(예: \`3. first\`)가 변경될 때 Confluence XHTML의 <ol start="N"> 속성이 업데이트되지 않는 버그를 수정합니다. - bin/reverse_sync/list_patcher.py: _get_ordered_list_start() 헬퍼 추가, _regenerate_list_from_parent()에서 시작 번호 변경 감지 시 ol_start 필드 포함 - bin/reverse_sync/xhtml_patcher.py: ol_start 패치 필드로 <ol start> 속성 갱신/제거 - tests/test_reverse_sync_xhtml_patcher.py: ol_start 패치 테스트 추가 - tests/test_reverse_sync_list_patcher_ol_start.py: _get_ordered_list_start 단위 테스트 추가 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
5ecf849 to
ba028ca
Compare
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.
Description
MDX 순서 목록의 시작 번호(예:
3. first)가 변경될 때 Confluence XHTML의<ol start="N">속성이 업데이트되지 않는 버그를 수정합니다.변경 전: MDX
3. first\n4. second→ XHTML<ol><li>...</li></ol>(start 속성 없음) ❌변경 후: MDX
3. first\n4. second→ XHTML<ol start="3"><li>...</li></ol>✅변경 파일
bin/reverse_sync/list_patcher.py:_get_ordered_list_start()헬퍼 추가,_regenerate_list_from_parent()에서 시작 번호 변경 감지 시ol_start필드 포함bin/reverse_sync/xhtml_patcher.py:ol_start패치 필드로<ol start>속성 갱신(또는start=1이면 제거)tests/test_reverse_sync_xhtml_patcher.py:TestOlStartPatch클래스 추가 (new_inner_xhtml 경로, 텍스트 전이 경로, start 제거 케이스)tests/test_reverse_sync_list_patcher_ol_start.py:_get_ordered_list_start단위 테스트 추가Added/updated tests?
TestOlStartPatch3개,TestGetOrderedListStart6개 추가🤖 Generated with Claude Code