From 49329d1f648c109f48c2630c045951181f1623c5 Mon Sep 17 00:00:00 2001 From: Christian Morpurgo Date: Thu, 24 Apr 2025 20:02:39 +0200 Subject: [PATCH] potential fix for font_scale --- markdown2html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown2html.py b/markdown2html.py index 0e89f42..07f38ac 100644 --- a/markdown2html.py +++ b/markdown2html.py @@ -86,7 +86,7 @@ def markdown2html(markdown, basepath, re_render, resources, viewport_width, font # FIXME: report that ST doesn't support
but does work with
... WTF? # Add font scaling CSS rule - font_scale_css = "html {{ font-size: {}em; }}\n".format(font_scale) + font_scale_css = "body {{ transform: scale({}); transform-origin: top left; }}\n".format(font_scale) stylesheet = font_scale_css + resources["stylesheet"] return "\n\n{}".format(stylesheet, soup).replace(