minor updates
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
Reference in New Issue
Block a user