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:
2 files changed
+49
-10
No files matched your search
@@ -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"\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"\n\n")
|
||||
title = img['title'] if img['title'] else 'Image'
|
||||
filename = img['file']
|
||||
f.write(f"\n\n")
|
||||
|
||||
f.write('\n')
|
||||
|
||||
|
||||
Reference in new issue
Block a user