Enhance image metadata handling in GEDCOM processing

Improves image reference resolution by extracting additional metadata like file, title, and format

Changes image handling to return richer dictionary information instead of simple references, enabling more detailed image display in markdown generation

Updates markdown output to use extracted image title and filename for more informative image rendering
This commit is contained in:
AlexKucera committed 2025-10-31 15:17:08 +01:00
1 parent 3a9112de60
commit cc46f0a523
2 files changed
+49 -10

No files matched your search

+7 -3
View File
@@ -238,8 +238,10 @@ class MarkdownGenerator:
f.write("## Images\n")
for image_ref in images:
f.write(f"- {image_ref}\n")
for image in images:
title = image['title'] if image['title'] else 'Image'
filename = image['file']
f.write(f"![{title}]({filename})\n\n")
f.write('\n')
@@ -276,7 +278,9 @@ class MarkdownGenerator:
# Write images for this section
if section['images']:
for img in section['images']:
f.write(f"![Image]({img})\n\n")
title = img['title'] if img['title'] else 'Image'
filename = img['file']
f.write(f"![{title}]({filename})\n\n")
f.write('\n')