Load images from the internet using an in memory cache

As soon as the plugin is reloaded, or the editor restarted, the images
must be reloaded. Maybe we could use a file cache...
This commit is contained in:
Mathieu PATUREL
2019-11-14 19:30:26 +11:00
parent bae26fc452
commit ef9b2daf6d
3 changed files with 42 additions and 11 deletions

View File

@ -150,7 +150,7 @@ class MarkdownLivePreviewListener(sublime_plugin.EventListener):
original_view.set_syntax_file(markdown_view.settings().get('syntax'))
# here, views are NOT treated independently, which is theoratically wrong
# here, views are NOT treated independently, which is theoretically wrong
# but in practice, you can only edit one markdown file at a time, so it doesn't really
# matter.
# @min_time_between_call(.5)