Commit 495b108
confluence-mdx: emitter가 width 있는 ac:image에 ac:custom-width 속성을 추가합니다 (#947)
## Summary
- emitter의 `_figure_attrs_to_ac_image`, `_emit_figure` 두 경로에서 `ac:width`
설정 시 `ac:custom-width="true"` 속성을 함께 추가합니다
- FC(`converter/core.py`)는 `ac:custom-width="true"`가 있어야 `ac:width`를 MDX
`width=`로 변환합니다 — 이 속성이 없으면 roundtrip 시 width가 손실됩니다
## Test plan
- [x] `pytest tests/test_mdx_to_storage/test_emitter.py` — 54/54 pass
- [x] `pytest tests/ --ignore=tests/test_unused_attachments.py` —
871/871 pass
- [x] `make test-reverse-sync` — 42/42 pass
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Atlas <atlas@jk.agent>1 parent 9402af7 commit 495b108
3 files changed
Lines changed: 44 additions & 3 deletions
File tree
- confluence-mdx
- bin/mdx_to_storage
- tests
- test_mdx_to_storage
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
260 | 261 | | |
261 | 262 | | |
262 | 263 | | |
| |||
339 | 340 | | |
340 | 341 | | |
341 | 342 | | |
| 343 | + | |
342 | 344 | | |
343 | 345 | | |
344 | 346 | | |
| |||
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| |||
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
555 | | - | |
| 555 | + | |
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
| |||
0 commit comments