potential fix for font scale not working
This commit is contained in:
3
.gitattributes
vendored
3
.gitattributes
vendored
@ -1,4 +1,5 @@
|
|||||||
docs/ export-ignore
|
docs/ export-ignore
|
||||||
resources/
|
resources/
|
||||||
!resources/*.base64
|
!resources/*.base64
|
||||||
test_imports.py export-ignore
|
test_imports.py export-ignore
|
||||||
|
MarkdownLivePreview.sublime-package export-ignore
|
||||||
@ -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 = "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"]
|
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