-
Notifications
You must be signed in to change notification settings - Fork 0
Feature MBEP#333 image support #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR implements image support in the markdown to DOCX conversion functionality, enabling templates to include images that are properly embedded in generated Word documents.
Changes:
- Added image embedding capability to the md2docx converter with support for image titles/captions
- Extended the template processing pipeline to pass output directory path for resolving relative image paths
- Added comprehensive test coverage for image handling scenarios
Reviewed changes
Copilot reviewed 28 out of 30 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/test_md2docx.py | Added test cases for image conversion scenarios (with/without titles, nonexistent files) |
| templateprocessor/templateinstantiator.py | Added output_directory parameter to make it available in template context |
| templateprocessor/postprocessor.py | Added base_path parameter throughout postprocessor chain for image path resolution |
| templateprocessor/md2docx.py | Implemented embed_image function and integrated image handling into markdown conversion |
| templateprocessor/cli.py | Updated CLI to pass output_directory as base_path to postprocessor |
| examples/sdl-project/* | Generated example files for SDL project structure |
| examples/images.tmplt | Added example template demonstrating image support |
| examples/generate_*.sh | Added example scripts for generating documentation |
| data/ecss-template/ecss-e-st-40c_4_3_software_behaviour.tmplt | Added template for SDL behavior documentation with automated diagram generation |
| README.md | Updated documentation with installation instructions and usage examples |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.