potential fix for fontscaling

This commit is contained in:
2025-04-24 20:14:10 +02:00
parent 89d712fcce
commit 7c37a9e413
2 changed files with 8 additions and 7 deletions

View File

@ -85,9 +85,9 @@ def markdown2html(markdown, basepath, re_render, resources, viewport_width, font
# FIXME: highlight the code using Sublime's syntax
# FIXME: report that ST doesn't support <br/> but does work with <br />... WTF?
# Add font scaling CSS rule
font_scale_css = "body {{ transform: scale({}); transform-origin: top left; }}\n".format(font_scale)
stylesheet = font_scale_css + resources["stylesheet"]
# Add font scaling CSS rule - REMOVED as MiniHTML doesn't support transform/font-size scaling this way
# font_scale_css = "body {{ transform: scale({}); transform-origin: top left; }}\n".format(font_scale)
stylesheet = resources["stylesheet"] # Use only the base stylesheet
return "<style>\n{}\n</style>\n\n{}".format(stylesheet, soup).replace(
"<br/>", "<br />"