Enhances GEDCOM story parsing and markdown generation
Improves individual story extraction to support: - More detailed story structure with sections - Subtitle and description metadata - Inline image references Updates README with GEDCOM version compatibility guidelines and line ending troubleshooting tips
This commit is contained in:
3 files changed
+69
-20
No files matched your search
@@ -257,13 +257,26 @@ class MarkdownGenerator:
|
||||
for note in notes:
|
||||
f.write(f"{note}\n\n")
|
||||
|
||||
# Write stories with titles
|
||||
# Write stories with their sections
|
||||
for story in stories:
|
||||
if story['title']:
|
||||
f.write(f"### {story['title']}\n\n")
|
||||
|
||||
if story['text']:
|
||||
f.write(f"{story['text']}\n\n")
|
||||
if story['description']:
|
||||
f.write(f"*{story['description']}*\n\n")
|
||||
|
||||
# Write each section
|
||||
for section in story['sections']:
|
||||
if section['subtitle']:
|
||||
f.write(f"#### {section['subtitle']}\n\n")
|
||||
|
||||
if section['text']:
|
||||
f.write(f"{section['text']}\n\n")
|
||||
|
||||
# Write images for this section
|
||||
if section['images']:
|
||||
for img in section['images']:
|
||||
f.write(f"\n\n")
|
||||
|
||||
f.write('\n')
|
||||
|
||||
|
||||
Reference in new issue
Block a user