Conversation
There was a problem hiding this comment.
Pull request overview
Adds support for exporting draw.io diagrams embedded in Confluence pages by downloading the corresponding PNG attachments and converting draw.io macros into inline image references in the generated Markdown.
Changes:
- Introduce attachment fetching/downloading in the Confluence client layer.
- Add draw.io macro detection + replacement in the renderer and thread the Confluence client through export APIs.
- Add renderer tests for draw.io handling and bump package metadata/versioning.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| uv.lock | Bumps locked package version to 0.2.0. |
| src/confluence2md/renderer.py | Replaces draw.io macros with image tags and downloads PNG attachments during export. |
| src/confluence2md/client.py | Adds Attachment model plus fetch_attachments and download_attachment helpers. |
| src/confluence2md/cli.py | Passes Confluence client through to export functions so diagrams can be processed. |
| tests/test_renderer.py | Adds unit tests covering draw.io macro parsing, PNG selection, and export behavior. |
| pyproject.toml | Adds readme metadata and updates version to 0.2.0. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@copilot apply changes based on the comments in this thread |
All review feedback has been applied in commit Here's a summary of every change made:
All 54 tests pass and CodeQL reports no alerts. |
Export draw.io diagrams embedded in Confluence pages as PNG images alongside the Markdown files. Diagrams are automatically downloaded from page attachments and referenced as inline images in the output.