e3896a6b3d
fix indentation in pre in preview
...
Again, this is a dodgy hack: replace spaces with dot with the color
exactly like the background, because otherwise ST ignores it, even in
pre
2019-11-15 15:02:31 +11:00
6016f07cd1
add line breaks for pre
2019-11-15 14:52:20 +11:00
5f2cac54e8
use a resource system to load images and stylesheet
2019-11-15 07:21:41 +11:00
8c1012eb8c
Remove entry in phantom_sets when markdown_view is closed
...
Otherwise the object would keep on growing forever. It probably would
never ever be a problem for anyone, but it just makes me feel better
2019-11-14 21:33:37 +11:00
cc28bfef96
clean up code; support code block; add few FIXMEs
2019-11-14 21:14:20 +11:00
ef9b2daf6d
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...
2019-11-14 19:30:26 +11:00
bae26fc452
Viewing images works for local files
...
We have to make sure that everything is converted to base64 (and
replaced in the src attribute) because otherwise ST3 messes up the
height of the images
2019-11-14 17:28:47 +11:00