Compare commits

..

2 Commits

Author SHA1 Message Date
99a4f21be3 Update package 2025-04-24 20:20:12 +02:00
edb424de99 font scale fix 2025-04-24 20:20:08 +02:00
3 changed files with 1 additions and 6 deletions

View File

@ -169,11 +169,6 @@ class MarkdownLivePreviewListener(sublime_plugin.EventListener):
if not infos:
return
self.debug_message(
"on_close: view_id: %d, close_id: %d" % (markdown_view.id(), view.id())
)
assert markdown_view.id() == view.id(), "pre_close view.id() != close view.id()"
if markdown_view.id() in self.phantom_sets:
del self.phantom_sets[markdown_view.id()]

Binary file not shown.

View File

@ -107,7 +107,7 @@ def markdown2html(markdown, basepath, re_render, resources, viewport_width, font
target_size = round(BASE_PX_SIZE * multiplier * font_scale)
# Simple style setting (overwrites existing inline style if any)
# A more robust solution would parse and merge existing styles
element['style'] = f"font-size: {target_size}px;"
element['style'] = "font-size: {}px;".format(target_size)
# FIXME: report that ST doesn't support <br/> but does work with <br />... WTF?
stylesheet = resources["stylesheet"] # Use only the base stylesheet