import markdown import os files_to_merge = ['AI_History/Client_Presentation.md', 'AI_History/status_report.md', 'AI_History/Retrospective.md'] merged_md = '' for fName in files_to_merge: if os.path.exists(fName): with open(fName, 'r', encoding='utf-8') as f: merged_md += f.read() + '\n\n---\n\n' html_content = markdown.markdown(merged_md, extensions=['tables']) html_template = f''' Customer Presentation

Clinical Food AI Platform

Master Deliverable Overview

{html_content} ''' with open('Final_Presentation.html', 'w', encoding='utf-8') as f: f.write(html_template) print('Generated HTML!')