potential fix for font_scale
This commit is contained in:
@ -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?
|
# FIXME: report that ST doesn't support <br/> but does work with <br />... WTF?
|
||||||
# Add font scaling CSS rule
|
# 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"]
|
stylesheet = font_scale_css + resources["stylesheet"]
|
||||||
|
|
||||||
return "<style>\n{}\n</style>\n\n{}".format(stylesheet, soup).replace(
|
return "<style>\n{}\n</style>\n\n{}".format(stylesheet, soup).replace(
|
||||||
|
|||||||
Reference in New Issue
Block a user