Generation test
This commit is contained in:
@@ -109,8 +109,8 @@ def parse_md_to_html_blocks(md_content):
|
||||
html_blocks.append(f'''<p class=MsoCaption style="text-align:center"><a name="{bookmark_id}"><span lang=ES style="font-size:12.0pt;line-height:150%">Figura {figure_counter}. </span></a><i><span lang=ES style="font-size:12.0pt;line-height:150%;font-weight:normal">{fig_title}</span></i></p>''')
|
||||
|
||||
if os.path.exists(fig_path):
|
||||
# Use actual image with proper Word-compatible format
|
||||
html_blocks.append(f'''<p class=MsoNormal style="text-align:center"><span lang=ES><img width=500 src="{fig_file}" alt="{fig_title}"/></span></p>''')
|
||||
# Use actual image with proper Word-compatible format (max 400px width, 500px height to fit page)
|
||||
html_blocks.append(f'''<p class=MsoNormal style="text-align:center"><span lang=ES><img style="max-width:400px;max-height:500px;width:auto;height:auto" src="{fig_file}" alt="{fig_title}"/></span></p>''')
|
||||
else:
|
||||
# Fallback to placeholder
|
||||
html_blocks.append(f'''<p class=MsoNormal style="text-align:center;border:1px dashed #999;padding:20px;margin:10px 40px;background:#f9f9f9"><span lang=ES style="color:#666">[Insertar diagrama Mermaid aquí]</span></p>''')
|
||||
|
||||
Reference in New Issue
Block a user