font scale fix

This commit is contained in:
2025-04-24 20:20:08 +02:00
parent d89e34f3e2
commit edb424de99
2 changed files with 1 additions and 6 deletions

View File

@ -107,7 +107,7 @@ def markdown2html(markdown, basepath, re_render, resources, viewport_width, font
target_size = round(BASE_PX_SIZE * multiplier * font_scale)
# Simple style setting (overwrites existing inline style if any)
# A more robust solution would parse and merge existing styles
element['style'] = f"font-size: {target_size}px;"
element['style'] = "font-size: {}px;".format(target_size)
# FIXME: report that ST doesn't support <br/> but does work with <br />... WTF?
stylesheet = resources["stylesheet"] # Use only the base stylesheet