Skip to content

feat(mdx-storage): Phase2 Task2.2 Figure → ac:image 변환 구현#773

Merged
jk-kim0 merged 2 commits intomainfrom
jk/task-2-2-figure
Feb 16, 2026
Merged

feat(mdx-storage): Phase2 Task2.2 Figure → ac:image 변환 구현#773
jk-kim0 merged 2 commits intomainfrom
jk/task-2-2-figure

Conversation

@jk-kim0
Copy link
Copy Markdown
Contributor

@jk-kim0 jk-kim0 commented Feb 16, 2026

Summary

  • <figure><img> MDX 블록을 <ac:image><ri:attachment> Confluence Storage XHTML로 변환하는 기능을 구현합니다.
  • parser에 _extract_figure_caption() 추가: <figcaption> 태그에서 텍스트를 추출하고 HTML 태그를 제거합니다.
  • emitter에 _emit_figure() 추가: ac:align, ac:width, ri:filename, ac:caption 속성을 포함한 XHTML을 생성합니다.
  • 파일명 추출은 os.path.basename() 사용 (경로 → basename)

Test plan

  • pytest tests/test_mdx_to_storage/ — 54/54 pass
  • figure + width → <ac:image ac:align="center" ac:width="700"> 검증
  • figure + caption → <ac:caption><p> + inline 변환 검증
  • figure src 누락 시 빈 출력 검증
  • width/caption 없는 최소 figure 검증
  • self-closing <img ... /> 파싱 검증
  • figure가 포함된 혼합 문서 통합 테스트 검증

🤖 Generated with Claude Code

Co-authored-by: Claude Opus 4.6 noreply@anthropic.com

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
querypie-docs Canceled Canceled Comment Feb 16, 2026 3:49pm

Request Review

@jk-kim0 jk-kim0 changed the title 2단계 Task 2.2: Figure/Image -> Confluence ac:image 변환 feat(mdx-storage): Phase2 Task2.2 Figure → ac:image 변환 구현 Feb 16, 2026
## Summary
- figure without width 최소 테스트 추가
- self-closing img 태그 (`<img ... />`) 파싱 테스트 추가
- figure가 포함된 혼합 문서 통합 테스트 추가

## Test plan
- [x] `pytest tests/test_mdx_to_storage/` — 54/54 pass
- [x] 전체 테스트 스위트 — 490/490 pass

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jk-kim0 jk-kim0 self-assigned this Feb 16, 2026
@jk-kim0 jk-kim0 enabled auto-merge (squash) February 16, 2026 15:48
@jk-kim0 jk-kim0 disabled auto-merge February 16, 2026 15:49
@jk-kim0 jk-kim0 merged commit df6a7b7 into main Feb 16, 2026
5 of 7 checks passed
@jk-kim0 jk-kim0 deleted the jk/task-2-2-figure branch February 16, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant