From 2c7d1ec23d0b1489ce1367b5926ce12b02509059 Mon Sep 17 00:00:00 2001 From: Julien Bouquillon Date: Mon, 17 Feb 2014 00:27:10 +0100 Subject: [PATCH] fix #161 --- Markdown.sublime-build | 12 ++---------- MarkdownPreview.py | 5 ++++- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/Markdown.sublime-build b/Markdown.sublime-build index 57c13f94..9987fd7b 100644 --- a/Markdown.sublime-build +++ b/Markdown.sublime-build @@ -1,12 +1,4 @@ { "target": "markdown_build", - "selector": "text.html.markdown", - - "variants": [ - - { - "target": "markdown_build_github", - "name": "Build with Github API" - } - ] -} \ No newline at end of file + "selector": "text.html.markdown" +} diff --git a/MarkdownPreview.py b/MarkdownPreview.py index d80e8039..32494533 100644 --- a/MarkdownPreview.py +++ b/MarkdownPreview.py @@ -503,6 +503,9 @@ def run(self): self.init_panel() + self.settings = sublime.load_settings('MarkdownPreview.sublime-settings') + parser = self.settings.get('parser', 'markdown') + show_panel_on_build = sublime.load_settings("Preferences.sublime-settings").get("show_panel_on_build", True) if show_panel_on_build: self.window.run_command("show_panel", {"panel": "output.markdown"}) @@ -514,7 +517,7 @@ def run(self): self.puts("Compiling %s..." % mdfile) - html, body = compiler.run(view, 'markdown', True) + html, body = compiler.run(view, parser, True) htmlfile = os.path.splitext(mdfile)[0]+'.html' self.puts(" ->"+htmlfile)