diff --git a/MarkdownLivePreview.py b/MarkdownLivePreview.py index d8a3e24..ffe8164 100644 --- a/MarkdownLivePreview.py +++ b/MarkdownLivePreview.py @@ -34,7 +34,6 @@ class NewMarkdownLivePreviewCommand(sublime_plugin.ApplicationCommand): md_view = self.window.open_file(file_name) mdsettings = md_view.settings() - mdsettings.set(PREVIEW_ENABLED, True) mdsettings.set(PREVIEW_ID, preview.id()) @@ -42,6 +41,7 @@ class NewMarkdownLivePreviewCommand(sublime_plugin.ApplicationCommand): return is_markdown_view(sublime.active_window().active_view()) class MarkdownLivePreviewListener(sublime_plugin.EventListener): + def on_modified(self, view): if not is_markdown_view(view): # faster than getting the settings return @@ -62,4 +62,4 @@ class MarkdownLivePreviewListener(sublime_plugin.EventListener): return 'close_window', {} def on_load_async(self, view): - self.on_modified(view) \ No newline at end of file + self.on_modified(view) diff --git a/MarkdownLivePreview.tasks b/MarkdownLivePreview.tasks index 946c98a..24471ec 100644 --- a/MarkdownLivePreview.tasks +++ b/MarkdownLivePreview.tasks @@ -10,6 +10,7 @@ Medium: ☐ use alt attribute for 404 error ☐ use MarkdownLivePreview syntax, so we can use syntax's settings ☐ listen for settings to change + ☐ fix relative source Long: ☐ fix #4 @high diff --git a/README.md b/README.md index 5d78316..8cb5c5d 100644 --- a/README.md +++ b/README.md @@ -51,4 +51,5 @@ It is possible to set your own css. But, be carefull, you have to respect [those Some of the package add a command in the menus, others in the command palette, or other nowhere. None of those options are really good, especially the last one on ST3 because the packages are compressed. But, fortunately, there is plugin that exists and **will solve this problem** for us (and he has a really cute name, don't you think?): [ReadmePlease](https://packagecontrol.io/packages/ReadmePlease). -[markdown-extended]: https://packagecontrol.io/packages/Markdown \ No newline at end of file + +[markdown-extended]: https://packagecontrol.io/packages/Markdown diff --git a/sample.md b/sample.md index f15827a..f3fe174 100644 --- a/sample.md +++ b/sample.md @@ -1,4 +1,4 @@ -# DuckDuckGo - The Search engine you'll fall in love +# DuckDuckGo - The Search engine you'll fall in love dsfsdf This is cool @@ -10,4 +10,4 @@ Hope you'll enjoy using MarkdownLivePreview! [GitHub](https://octodex.github.com/images/jetpacktocat.png) -this is a test \ No newline at end of file +this is a test