{title}
nn” for paragraph in content.split(‘nn’): if paragraph.strip(): formatted_content += f” {paragraph.strip()} nn” return formatted_content def insert_subheadings(text): lines = text.split(‘n’) formatted_lines = [] subheading_count = 0 for line in lines: if line.strip() and not line.startswith((‘#’, ‘*’)): if subheading_count < 3: formatted_lines.append(f" {line.strip()} “) subheading_count += 1 else: formatted_lines.append(f” {line.strip()} “) else: formatted_lines.append(line.strip()) return ‘n’.join(formatted_lines) def generate_key_takeaways_table(data):

