Skip to content
This repository has been archived by the owner on May 17, 2018. It is now read-only.

Commit

Permalink
fix #161
Browse files Browse the repository at this point in the history
  • Loading branch information
revolunet committed Feb 16, 2014
1 parent a45b555 commit 2c7d1ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
12 changes: 2 additions & 10 deletions Markdown.sublime-build
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
{
"target": "markdown_build",
"selector": "text.html.markdown",

"variants": [

{
"target": "markdown_build_github",
"name": "Build with Github API"
}
]
}
"selector": "text.html.markdown"
}
5 changes: 4 additions & 1 deletion MarkdownPreview.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
Expand All @@ -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)
Expand Down

0 comments on commit 2c7d1ec

Please sign in to comment.