Skip to content

Conversation

@Lurkerpas
Copy link
Contributor

No description provided.

@Lurkerpas Lurkerpas requested a review from Copilot January 16, 2026 21:52
Copy link

Copilot AI left a 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.

@Lurkerpas Lurkerpas requested a review from Ficzer January 16, 2026 22:07
@Lurkerpas Lurkerpas merged commit faf723c into main Jan 20, 2026
1 check passed
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.

4 participants