confluence-mdx: clean container에서 원본 wrapper 타입 유실 수정합니다#910
Open
confluence-mdx: clean container에서 원본 wrapper 타입 유실 수정합니다#910
Conversation
1 task
6430287 to
af0a6aa
Compare
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
af0a6aa to
018efe2
Compare
018efe2 to
782fae8
Compare
79f1c6a to
3c34267
Compare
jk-kim0
added a commit
that referenced
this pull request
Mar 16, 2026
… 유지 개선합니다 - _rewrite_paragraph_on_template: paragraph inline tag(bold/em/link/code)를 유지하며 텍스트만 새 fragment 기준으로 갱신합니다 (PR #910 방식 도입) - _has_inline_markup: <p>에 ac:image 외 inline 태그 존재 여부를 탐지합니다 - reconstruct_container_fragment: anchor로 reconstruction이 트리거된 경우, 같은 container 내 inline markup child도 함께 보존합니다 - outer wrapper template: sidecar xhtml_fragment를 기준으로 macro 속성(ac:schema-version 등) 을 보존합니다 (기존: emitted fragment 기준) 트리거 정책: anchor(ac:image) 또는 list item anchor가 있는 경우에만 reconstruction을 적용하며, inline markup만 있는 container는 text-transfer 유지합니다. (child 수 불일치 케이스에서 안전성 확보) Co-Authored-By: Atlas <atlas@jk.agent>
6d8bcd1 to
b23cc42
Compare
b23cc42 to
ad185c3
Compare
ad185c3 to
9038f39
Compare
9038f39 to
67fef19
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.
문제
clean container(anchor 없는 컨테이너)를 재구성할 때
new_fragment를 그대로 반환했습니다.emit 단계에서 생성된 wrapper 타입(예:
ac:structured-macro)이 그대로 남아,sidecar에 기록된 원본 wrapper 타입(예:
ac:adf-extension)이 유실되는 버그가 있었습니다.수정 내용
reconstructors.pyxhtml_fragment기준)를 clean container 분기 이전으로 이동합니다._find_container_body(),_replace_container_body_children()헬퍼를 분리해 중복을 제거합니다.테스트
test_clean_container_preserves_template_wrapper추가ac:structured-macro이고 sidecar template이ac:adf-extension일 때,결과가
ac:adf-extensionwrapper를 사용하는지 검증합니다.검증