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

Commit 2c7d1ec

Browse files
committed
fix #161
1 parent a45b555 commit 2c7d1ec

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

Markdown.sublime-build

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
{
22
"target": "markdown_build",
3-
"selector": "text.html.markdown",
4-
5-
"variants": [
6-
7-
{
8-
"target": "markdown_build_github",
9-
"name": "Build with Github API"
10-
}
11-
]
12-
}
3+
"selector": "text.html.markdown"
4+
}

MarkdownPreview.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,9 @@ def run(self):
503503

504504
self.init_panel()
505505

506+
self.settings = sublime.load_settings('MarkdownPreview.sublime-settings')
507+
parser = self.settings.get('parser', 'markdown')
508+
506509
show_panel_on_build = sublime.load_settings("Preferences.sublime-settings").get("show_panel_on_build", True)
507510
if show_panel_on_build:
508511
self.window.run_command("show_panel", {"panel": "output.markdown"})
@@ -514,7 +517,7 @@ def run(self):
514517

515518
self.puts("Compiling %s..." % mdfile)
516519

517-
html, body = compiler.run(view, 'markdown', True)
520+
html, body = compiler.run(view, parser, True)
518521

519522
htmlfile = os.path.splitext(mdfile)[0]+'.html'
520523
self.puts(" ->"+htmlfile)

0 commit comments

Comments
 (0)