potential fix for font scale not working

This commit is contained in:
2025-04-24 19:54:50 +02:00
parent e81b359294
commit 598e22002b
2 changed files with 3 additions and 2 deletions

3
.gitattributes vendored
View File

@ -1,4 +1,5 @@
docs/ export-ignore
resources/
!resources/*.base64
test_imports.py export-ignore
test_imports.py export-ignore
MarkdownLivePreview.sublime-package export-ignore

View File

@ -86,7 +86,7 @@ def markdown2html(markdown, basepath, re_render, resources, viewport_width, font
# FIXME: report that ST doesn't support <br/> but does work with <br />... WTF?
# Add font scaling CSS rule
font_scale_css = "body {{ font-size: {}em; }}\n".format(font_scale)
font_scale_css = "html {{ font-size: {}em; }}\n".format(font_scale)
stylesheet = font_scale_css + resources["stylesheet"]
return "<style>\n{}\n</style>\n\n{}".format(stylesheet, soup).replace(